...
Use the jmsclient
that comes with WSO2 ESB by default, to send messages to JMS Queue in ActiveMQ as follows:
ant
...
jmsclient
...
-Djms_type=pox
...
-Djms_dest=dynamicQueues/StockQuoteProxy
...
-Djms_payload=WSO2
Note in the console of WSO2 ESB that the first attempt will rollback and the second attempt will be committed.
...