axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Axis2 JMS samples?
Date Thu, 22 Mar 2007 20:33:37 GMT
Try the following steps.(All these are mentioned in the url you mentioned,
but check & see if you have missed anything ;-) )

1.Download & start ActiveMQ from apache.(Do not change default ports)

2.Open <AXIS2_HOME>/conf/axis2.xml

3.Uncomment transport receiver part for JMS.
   i.e. section starting with...
    <transportReceiver name="jms"

4.Uncomment line setting transport sender for JMS.
   i.e. line starting with
    <transportSender name="jms"

5.Start Axis Server by running <AXIS2_HOME>/bin/axis2server.(bat|sh)
(If you get a binding exception,change the port of axis server)

6.Type 'jconsole' on a new command/shell window. (i.e. assuming your using
jdk 1.5 & <JAVA_HOME>/bin is in your path)

7.This will open up a GUI.

8.On left hand side of the UI check for jms queues created with service
names you have deployed under axis2.

9.Once the queues are there(this means the link between the axis server &
JMS server is established),change you client code with following.

String url =

//Replace <ABCDE> with you service name.

//and add following property to client
options.setProperty(Constants.Configuration.TRANSPORT_URL, url);

10.Add <ACTIVEMQ_HOME>/lib/*.jar to classpath & run the client.

Good luck!!!!! Happy messaging with JMS ;-)


> Are there any samples for JMS with Axis2. Also can some one point some
> useful
> links on this topic. I could not find anything other than the
> Axis2/Java - JMS
> transport.
> Thanks
> Nishant
> --
> View this message in context:
> Sent from the Axis - User mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message