Description: To use JMS dynamic destinations in BusinessEvents, follow the format below while sending the outbound Event using the Event.routeTo function. Have the third argument in the Event.routeTo function as queue=true;name="NameofDynamicDestination".
Example:
String destination ="routingQueue";
Events.BookDataEvent afterRoute = Event.routeTo(toSend,
"/Channels/JMSChannel/BookDataDestination", "queue=true;name="+destination);