Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To send a message to a JMS queue, we define a JMS connection URL (line numbers 7 in the configuration above) as the URL of the endpoint, which will be invoked via the send mediator.

ou You can define a JMS queue name and connection factory parameters in the JMS connection URL. Values of connection factory parameters depend on the type of the JMS broker.  Listed below are examples of how the JMS connection URL can be defined for WSO2 Message Broker and for ActiveMQ.

Example JMS connection URL for ActiveMQ

...


Note
titleNote

When entering the following JMS connection URLs in the Management Console, be sure to replace the '&' character in the endpoint URL with '&' to avoid the following exception:

Code Block
com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '=' (code 61); expected a semi-colon after the reference for entity 'java.naming.factory.initial' at [row,col {unknown-source}
Example JMS connection URL for ActiveMQ
Code Block
jms:/SimpleStockQuoteService?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616&transport.jms.DestinationType=queue

...

Code Block
jms:/StockQuotesQueue?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory&java.naming.provider.url=repository/conf/jndi.properties&transport.jms.DestinationType=queue
Note
titleNote
When entering these URLs in the management console, replace '&' character in the endpoint URL with '&'


Other Configurations

In addition to configuring the ESB proxy service as shown above, follow the steps below.

...