This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Configuring with the Broker Profile
Follow the steps below to configure the JMS transport of the WSO2 EI Integration profile with the Broker profile.
From the below configurations, do the ones in the axis2.xml file based on the profile you use as follows:
To enable the JMS transport in the Integration profile, edit the
<EI_HOME>/conf/axis2/axis2.xmlfile.To enable the JMS transport in other profiles, edit the
<EI_HOME>/wso2/<PROFILE_HOME>/conf/axis2/axis2.xmlfile.<PROFILE_HOME>refers to the main directory of the profile inside the WSO2 EI distribution. For example, to enable the JMS transport in the Business Process profile, edit the<EI_HOME>/wso2/business-process/conf/axis2/axis2.xmlfile
To enable the JMS transport of the Integration profile to communicate with the Broker profile, edit the
<EI_HOME>/conf/axis2/axis2.xmlfile, find the commented<transport receiver>block and uncomment it as shown below.<!--Uncomment this and configure as appropriate for JMS transport support with WSO2 MB 2.x.x --> <transportReceiver name="jms" class="org.apache.axis2.transport.jms.JMSListener"> <parameter name="myTopicConnectionFactory" locked="false"> <parameter name="java.naming.factory.initial" locked="false">org.wso2.andes.jndi.PropertiesFileInitialContextFactory</parameter> <parameter name="java.naming.provider.url" locked="false">conf/jndi.properties</parameter> <parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">TopicConnectionFactory</parameter> <parameter name="transport.jms.ConnectionFactoryType" locked="false">topic</parameter> </parameter> <parameter name="myQueueConnectionFactory" locked="false"> <parameter name="java.naming.factory.initial" locked="false">org.wso2.andes.jndi.PropertiesFileInitialContextFactory</parameter> <parameter name="java.naming.provider.url" locked="false">conf/jndi.properties</parameter> <parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">QueueConnectionFactory</parameter> <parameter name="transport.jms.ConnectionFactoryType" locked="false">queue</parameter> </parameter> <parameter name="default" locked="false"> <parameter name="java.naming.factory.initial" locked="false">org.wso2.andes.jndi.PropertiesFileInitialContextFactory</parameter> <parameter name="java.naming.provider.url" locked="false">conf/jndi.properties</parameter> <parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">QueueConnectionFactory</parameter> <parameter name="transport.jms.ConnectionFactoryType" locked="false">queue</parameter> </parameter> </transportReceiver>Uncomment the following
<transport sender>block for JMS in the same file:<!-- uncomment this and configure to use connection pools for sending messages> <transportSender name="jms" class="org.apache.axis2.transport.jms.JMSSender"/>Copy the following JAR files from the
<EI_HOME>/wso2/broker/clent-lib/directory to the<EI_HOME>/lib/directory.andes-client-3.2.14.jargeronimo-jms_1.1_spec-1.1.0.wso2v1.jarorg.wso2.securevault-1.0.0-wso2v2.jar
Open <EI_HOME>/conf/jndi.properties fileand make a reference to the running Broker profile as specified below:Use carbon as the virtual host.
Define a queue named
JMSMS.Comment out the topic, since it is not required in this scenario. However, in order to avoid getting the
javax.naming.NameNotFoundException:TopicConnectionFactoryexception during server startup, make a reference to the Broker profile from theTopicConnectionFactoryas well.
For example:# register some connection factories # connectionfactory.[jndiname] = [ConnectionURL] connectionfactory.QueueConnectionFactory = amqp://admin:admin@clientID/carbon?brokerlist='tcp://localhost:5673' connectionfactory.TopicConnectionFactory = amqp://admin:admin@clientID/carbon?brokerlist='tcp://localhost:5673' # register some queues in JNDI using the form # queue.[jndiName] = [physicalName] queue.JMSMS=JMSMS queue.StockQuotesQueue = StockQuotesQueue
Ensure that the Broker profile is running, and then open a command prompt (or a shell in Linux) and go to the
<EI_HOME>/bin/directory.Start the WSO2 EI server by executing the following commands:
sh wso2server.sh(on Linux/OS X) orwso2server.bat(on Windows).
Now, you have both Broker and Integration profile of WSO2 EI configured and running with the JMS transport enabled.