This section describes how to configure WSO2 ESB JMS inbound protocol with ActiveMQ.
...
- Download and set up Apache ActiveMQ. For more information, see Installation Prerequisites
Set up WSO2 ESB. For information on getting the ESB set up, see Getting Started.
Info title Note ActiveMQ should be up and running before starting the ESB.
- Copy the following client libraries from the
<AMQ_HOME>/lib
directory to the< ESB_HOME>/repository/components/lib
directory.For ActiveMQ 5.8.0 and above
- activemq-broker-5.8.0.jar
- activemq-client-5.8.0.jar
- geronimo-jms_1.1_spec-1.1.1.jar
- geronimo-j2ee-management_1.1_spec-1.0.1.jar
Info title Note If you are using ActiveMQ version 5.8.0 or later, copy hawtbuf-1.2.jar to the
<ESB_HOME>/repository/components/lib
directory.For earlier versions of ActiveMQ
- activemq-core-5.5.1.jar
- geronimo-j2ee-management_1.0_spec-1.0.jar
- geronimo-jms_1.1_spec-1.1.1.jar
- Next, configure the inbound listener in the ESB.
Configuring the JMS inbound listener
...
Info | ||
---|---|---|
| ||
For details on the JMS configuration parameters used in the sample configuration above, see JMS Connection Factory Parameters. |
Info |
---|
The sample configuration above does not address the problem of transient failures of the ActiveMQ message broker. For example, if we consider a scenario where the ActiveMQ broker goes down for some reason and comes back up after a while. The ESB will not reconnect to ActiveMQ but instead it will throw errors when requests are sent to the ESB until it is restarted. failover:tcp://localhost:61616 Setting this as the value for the |
...