You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Dwiputera Aries Fajar (CI/AFR-SG)" <ar...@sg.bosch.com> on 2008/09/03 09:01:09 UTC
Axis2 + jms
Hi all,
I'm quite new to AXIS2 and JMS, so I hope someone in the forum can help me.
We are trying to expose our Webservice through JMS. We are using AXIS2 and exploring ActiveMQ.
So...i have performed all the necessary steps from :
http://ws.apache.org/axis2/1_1/jms-transport.html
Everythigg seesm to be ok, my WSDL is correct and it also expose my binding as JMS (see the snipset below).
Now...how can I invoke this WS through JMS? Is there any tools like SoapUI where I can give my wsdl and shoot? (I can do just like that if I use the HTTP request within SoapUI, but if I use the JMS, it seems to not reacting. Even my ActiveMQ console seems not to receive any new message).
Furthermore, how can I build a JMS client for this particular WS? (any example code???)
Thanks,
Aries
<wsdl:port name="echoJmsSoap11Endpoint" binding="ns:echoSoap11Binding">
<soap:address location="jms:/echo?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616"/>
</wsdl:port>
−
<wsdl:port name="echoJmsSoap12Endpoint" binding="ns:echoSoap12Binding">
<soap12:address location="jms:/echo?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616"/>
</wsdl:port>
RE: Axis2 + jms
Posted by Hans Drexler <Ha...@HumanInference.com>.
Hello Dwiputera,
No, there is no such tool that is easily accessible. In the end, we wrote a small Java program to put messages in the queue. It isn't really hard to do.
Not really the end of your problem, I Know...
-----Original Message-----
From: Dwiputera Aries Fajar (CI/AFR-SG) [mailto:ariesfajar.dwiputera@sg.bosch.com]
Sent: woensdag 3 september 2008 9:01
To: axis-user@ws.apache.org
Subject: Axis2 + jms
Hi all,
I'm quite new to AXIS2 and JMS, so I hope someone in the forum can help me.
We are trying to expose our Webservice through JMS. We are using AXIS2 and exploring ActiveMQ.
So...i have performed all the necessary steps from :
http://ws.apache.org/axis2/1_1/jms-transport.html
Everythigg seesm to be ok, my WSDL is correct and it also expose my binding as JMS (see the snipset below).
Now...how can I invoke this WS through JMS? Is there any tools like SoapUI where I can give my wsdl and shoot? (I can do just like that if I use the HTTP request within SoapUI, but if I use the JMS, it seems to not reacting. Even my ActiveMQ console seems not to receive any new message).
Furthermore, how can I build a JMS client for this particular WS? (any example code???)
Thanks,
Aries
<wsdl:port name="echoJmsSoap11Endpoint" binding="ns:echoSoap11Binding"> <soap:address location="jms:/echo?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616"/>
</wsdl:port>
−
<wsdl:port name="echoJmsSoap12Endpoint" binding="ns:echoSoap12Binding"> <soap12:address location="jms:/echo?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616"/>
</wsdl:port>
RE: Axis2 + jms
Posted by "Dwiputera Aries Fajar (CI/AFR-SG)" <ar...@sg.bosch.com>.
Hi Asankha,
thanks a lot for the reply. I have managed to invoke the service by creating a simple client code.
Thanks,
Aries
________________________________
From: Asankha C. Perera [mailto:asankha@wso2.com]
Sent: Wednesday, September 03, 2008 5:05 PM
To: axis-user@ws.apache.org
Subject: Re: Axis2 + jms
Aries
Everythigg seesm to be ok, my WSDL is correct and it also expose my binding as JMS (see the snipset below).
Now...how can I invoke this WS through JMS? Is there any tools like SoapUI where I can give my wsdl and shoot? (I can do just like that if I use the HTTP request within SoapUI, but if I use the JMS, it seems to not reacting. Even my ActiveMQ console seems not to receive any new message).
Just build a standard Axis2 client, and use the JMS EPR..
Furthermore, how can I build a JMS client for this particular WS? (any example code???)
See code at : http://svn.apache.org/viewvc/synapse/trunk/java/modules/samples/src/main/java/samples/userguide/
and the corresponding docs at : http://synapse.apache.org/Synapse_Samples.html#Sample253
You can use the standard Axis2 client with a JMS EPR
asankha
--
Asankha C. Perera
WSO2 - http://wso2.org
http://esbmagic.blogspot.com
Re: Axis2 + jms
Posted by "Asankha C. Perera" <as...@wso2.com>.
Aries
> Everythigg seesm to be ok, my WSDL is correct and it also expose my binding as JMS (see the snipset below).
>
> Now...how can I invoke this WS through JMS? Is there any tools like SoapUI where I can give my wsdl and shoot? (I can do just like that if I use the HTTP request within SoapUI, but if I use the JMS, it seems to not reacting. Even my ActiveMQ console seems not to receive any new message).
>
Just build a standard Axis2 client, and use the JMS EPR..
> Furthermore, how can I build a JMS client for this particular WS? (any example code???)
>
See code at :
http://svn.apache.org/viewvc/synapse/trunk/java/modules/samples/src/main/java/samples/userguide/
and the corresponding docs at :
http://synapse.apache.org/Synapse_Samples.html#Sample253
You can use the standard Axis2 client with a JMS EPR
asankha
--
Asankha C. Perera
WSO2 - http://wso2.org
http://esbmagic.blogspot.com