Yes, that is what I am testing now.

In the divert, before routing the message copy, a new RoutingContextImpl is 
created for it.
To this new RoutingContextImpl, the original transaction is picked up from the 
original context, but currently not the ServerSession.

So I am basically trying this in the divert:
newContext.setServerSession(originalContext.getServerSession());

If I do this, auto-creation-check issued from postOffice during routing works 
according to the destinations auto-create address settings.
If the destination does not exist and is not configured for auto-creation an 
"ActiveMQAddressDoesNotExistException" is returned to the sender.

Reply via email to