Rajika Can you please add this to the Samples?
This is very useful! Paul On Mon, Jul 27, 2009 at 7:17 AM, Rajika Kumarasiri<[email protected]> wrote: > hello users, > I was able to get current synapse-SNAPSHOT working with JBOssMQ 2.0.0.BETA3. > I am sending the steps and the configuration files etc.. FYI. > > 1. Copy the following jars from JBOssMQ to synapse lib folder. > jbm-core-client.jar, jbm-jms-client.jar, jnp-client.jar (these jars from the > client folder once you unzipped JBossMQ) > jbm-transports.jar, netty.jar (these are inside JBossMQ lib foder) > > 2. Add the following configuration to conf/axis2.xml > > <transportReceiver name="jms" > class="org.apache.axis2.transport.jms.JMSListener"> > <parameter > name="java.naming.factory.initial">org.jnp.interfaces.NamingContextFactory</parameter> > <parameter > name="java.naming.provider.url">jnp://localhost:1099</parameter> > <parameter > name="java.naming.factory.url.pkgs">org.jboss.naming:org.jnp.interfaces</parameter> > <parameter > name="transport.jms.ConnectionFactoryJNDIName">ConnectionFactory</parameter> > </transportReceiver> > > <transportSender name="jms" > class="org.apache.axis2.transport.jms.JMSSender"/> > > 3. Add the following entry to the jbossmq-jms configuration > file(onfig/stand-alone/non-clustered/jbm-jms.xml) to define the queue for > the service. > <queue name="StockQuoteProxy"> > <entry name="StockQuoteProxy"/> > </queue> > > 4. Change the sample client to have the JBOss MQ releated JNDI > configurations. > Properties env = new Properties(); > if (System.getProperty("java.naming.provider.url") == null) { > //env.put("java.naming.provider.url", "tcp://localhost:61616"); > env.put("java.naming.provider.url", "jnp://localhost:1099"); > } > if (System.getProperty("java.naming.factory.initial") == null) { > > //env.put("java.naming.factory.initial","org.apache.activemq.jndi.ActiveMQInitialContextFactory"); > > env.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory"); > } > env.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces"); > env.put("transport.jms.ConnectionFactoryJNDIName","ConnectionFactory"); > > 5. Run the client with - ant jmsclient -Djms_type=pox > -Djms_dest=StockQuoteProxy -Djms_payload=MSFT > > > -Rajika > > -- > http://wso2.org > http://llvm.org > http://www.minix3.org/ > -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [email protected] "Oxygenating the Web Service Platform", www.wso2.com
