Actually, the JMS spec says JMSDestination is supposed to be ignored when a message is
sent, the producer's destination must be used instead, and the message's
JMSDestination must be overwritten with the real destination afterwards. So I think that
even checking in ProducerAspect shouldn't be done.
The spec is a bit unclear since it also says that InvalidDestinationException "must
be thrown when a destination is not understood by the provider". I'd take that to
mean "the destination passed to createProducer/createConsumer".
Also, the code currently requires JMSReplyTo to be a JBossDestination as well, I don't
know if this restriction is necessary.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058107#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...