Details
-
Story
-
Resolution: Won't Do
-
Major
-
None
-
AMQ 7.8.0.GA
-
False
-
False
-
Undefined
Description
In a JMS Bridge scenario, if the message sent to AMQ has a JMSReplyTo reply header with an address from the source broker, the broker throws the exception:
javax.jms.InvalidDestinationException: Foreign destination
Looking at the API docs of the broker, we can read the following:
Note the following exception case when a provider is handling a foreign message implementation. If the foreign message implementation contains a JMSReplyTo header field that is set to a foreign destination implementation, the provider is not required to handle or preserve the value of this header field.
Despite this behavior is by design, I believe that there're room for improvement in this scenario. Here're some options to improve this:
- Remove the header, log a WARN and send the message for consumption.
- Implement something similar that exist on ActiveMQ 5.