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 lee hanu <ni...@yahoo.com> on 2007/03/22 19:23:05 UTC

Axis2 JMS samples?

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 
http://ws.apache.org/axis2/1_1_1/jms-transport.html Axis2/Java - JMS
transport. 

Thanks
Nishant
-- 
View this message in context: http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9621016
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis2 JMS samples?

Posted by lee hanu <ni...@yahoo.com>.
Also here is my Client

http://www.nabble.com/file/7460/ClientOne.java ClientOne.java 
-- 
View this message in context: http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9697757
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis2 JMS samples?

Posted by "Asankha C. Perera" <as...@wso2.com>.
Hi Nishant

I downloaded Axis2 1.1.1 and tried the below example (with complements 
of Apache Synapse) and this should thus work without any issue at all...

Download and install Axis2 1.1.1 stanalone
Configure JMS for Axis2 (uncomment JMS sender and receiver from 
conf/axis2.xml and copy following into Axis2 lib)
asankha@asankha:/opt/axis2-1.1.1/lib$ cp 
/opt/activemq-4.1.0/lib/activeio-core-3.0.0-incubator.jar .
asankha@asankha:/opt/axis2-1.1.1/lib$ cp 
/opt/activemq-4.1.0/lib/activemq-core-4.1.0-incubator.jar .
asankha@asankha:/opt/axis2-1.1.1/lib$ cp 
/opt/activemq-4.1.0/lib/geronimo-j2ee-management_1.0_spec-1.0.jar
Start ActiveMQ seperately
Extract JMS-sample.tar.gz into samples directory
Go to axis2Server/src/SimpleStockQuoteService and type "ant"

asankha@asankha:/opt/axis2-1.1.1/samples/axis2Server/src/SimpleStockQuoteService$ 
ant
Buildfile: build.xml
.....
      [jar] Building jar: 
/opt/axis2-1.1.1/samples/axis2Server/repository/services/SimpleStockQuoteService.aar

Deploy Service into your actual repo (i.e. copy it as follows)
asankha@asankha:/opt/axis2-1.1.1/samples$ cp 
axis2Server/repository/services/SimpleStockQuoteService.aar 
./../repository/services/

Start Axis2

Try client as follows:

asankha@asankha:/opt/axis2-1.1.1/samples/axis2Client$ ant dumbstockquote 
-Dgatewayurl="jms:/dynamicQueues/SimpleStockQuoteService?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616"

On the server console you will see:
Wed Mar 28 01:06:54 LKT 2007 SimpleStockQuoteService :: Generating quote 
for : IBM

and on the client:
[java] Standard :: Stock price = $84.20553963251362

Feel free to modify and experiment with the sample
asankha



Re: Axis2 JMS samples?

Posted by lee hanu <ni...@yahoo.com>.
Asanka,
The follwoing is the service.xml for the Echo Webservice. 
<?xml version="1.0" encoding="UTF-8"?>
<service name="echo">
	<description>Echo Service</description>
	<messageReceivers>
		<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
			class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
		<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
			class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
	</messageReceivers>
	<parameter name="ServiceClass"
locked="true">org.apache.axis2.samples.jms.echo.Echo</parameter>
</service>

Thanks for your patience and for all the help so far.



asankha wrote:
> 
> 
> 
> 
>   
> 
> 
> Ok cool.. so now it seems like you are trying to reach a service
> through the Queue 'echo' but I am not sure if a service is deployed
> against that Queue. Could you share the services.xml of the 'echo'
> service? I can see the 'Version', 'MyService' and 'WsaMappingTest'
> starting up... 
> 
> asankha 
> 
> lee hanu wrote:
> 
>   Yes it has started. I am now using the Axis2 standalone server and I am
> using
> Axis2 1.1.1. The follwoing is the console display.
> 
> Mar 27, 2007 11:08:55 AM
> org.apache.axis2.transport.http.server.DefaultConnectionListener run
> INFO: Listening on port 8080
> Mar 27, 2007 11:08:56 AM org.apache.axis2.transport.jms.JMSListener init
> INFO: JMS Transport Receiver (Listener) initialized...
> Mar 27, 2007 11:08:56 AM
> org.apache.axis2.transport.jms.JMSConnectionFactory
> listen
> INFO: Connection factory : myTopicConnectionFactory initialized...
> Mar 27, 2007 11:08:56 AM
> org.apache.axis2.transport.jms.JMSConnectionFactory
> listen
> INFO: Connection factory : myQueueConnectionFactory initialized...
> Mar 27, 2007 11:08:56 AM
> org.apache.axis2.transport.jms.JMSConnectionFactory
> listenOnDestination
> WARNING: Cannot find destination : Version Creating a Queue with this name
> Mar 27, 2007 11:08:56 AM
> org.apache.axis2.transport.jms.JMSConnectionFactory
> listenOnDestination
> WARNING: Cannot find destination : WsaMappingTest Creating a Queue with
> this
> name
> Mar 27, 2007 11:08:56 AM
> org.apache.axis2.transport.jms.JMSConnectionFactory
> listenOnDestination
> WARNING: Cannot find destination : MyService Creating a Queue with this
> name
> Mar 27, 2007 11:08:57 AM
> org.apache.axis2.transport.jms.JMSConnectionFactory
> listen
> INFO: Connection factory : default initialized...
> Mar 27, 2007 11:08:57 AM org.apache.axis2.transport.SimpleAxis2Server main
> INFO: [SimpleAxisServer] Started
> 
> 
> 
> asankha wrote:
>   
>   
>     
> 
> 
>   
> 
> 
> Still.. you haven't confirmed this from my previous email: 
> I assume you are running a standalone client against your JMS web
> &amp;gt; service echo. However it seems like your echo service is not
> correctly
> &amp;gt; deployed for JMS. 
> &amp;gt; 
> &amp;gt; Can you confirm that the JMS transport has started in your Axis2
> &amp;gt; deployment on Tomcat? You should see an "[INFO] JMS Transport
> Receiver
> &amp;gt; (Listener) initialized..." if it has. 
> Your JMS transport doesn't seem like it started properly.. do you see
> the above log message on your Axis2 when it starts? 
> 
> asankha 
> 
> lee hanu wrote:
> 
>   I am now trying to get this thing to work against the Axis2 standalone
> server. I am still getting the same exception. I am still using Axis2
> 1.1.1.
> So I turned the debug on using LOG4J and this part of the logging
> messages.
> Hope this helps to figure out my problem. My guess is that my client
> program
> is able to establish a connection to ActiveMQ but it is not getting any
> response. Also I attached the Simple Client I am using to test the JMS
> stuff. 
> Thanks 
> 
> [DEBUG] 55:22 (JMSSender.java:invoke:49)JMSSender invoke()
> 
> [ WARN] 55:22 (JMSOutTransportInfo.java:getDestination:108)Cannot get or
> lookup JMS destination : echo from url :
> jms:/echo?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;amp;java.naming.provider.url=tcp://localhost:61616
> : echo
> 
> [DEBUG] 55:23 (WireFormatNegotiator.java:start:71)Sending: WireFormatInfo
> {
> version=2, properties={TightEncodingEnabled=true, CacheSize=1024,
> TcpNoDelayEnabled=true, SizePrefixDisabled=false, StackTraceEnabled=true,
> MaxInactivityDuration=30000, CacheEnabled=true}, magic=[A,c,t,i,v,e,M,Q]}
> 
> [DEBUG] 55:23 (WireFormatNegotiator.java:onCommand:102)Received
> WireFormat:
> WireFormatInfo { version=2, properties={TightEncodingEnabled=true,
> CacheSize=1024, TcpNoDelayEnabled=true, SizePrefixDisabled=false,
> StackTraceEnabled=true, MaxInactivityDuration=30000, CacheEnabled=true},
> magic=[A,c,t,i,v,e,M,Q]}
> 
> [DEBUG] 55:23
> (WireFormatNegotiator.java:onCommand:109)tcp://localhost/127.0.0.1:61616
> before negotiation: OpenWireFormat{version=2, cacheEnabled=false,
> stackTraceEnabled=false, tightEncodingEnabled=false,
> sizePrefixDisabled=false}
> 
> [DEBUG] 55:23
> (WireFormatNegotiator.java:onCommand:120)tcp://localhost/127.0.0.1:61616
> after negotiation: OpenWireFormat{version=2, cacheEnabled=true,
> stackTraceEnabled=true, tightEncodingEnabled=true,
> sizePrefixDisabled=false}
> 
> [DEBUG] 55:24 (StAXUtils.java:createXMLStreamWriter:205)XMLStreamWriter is
> com.ctc.wstx.sw.SimpleNsStreamWriter
> 
> [DEBUG] 55:24 (JMSSender.java:invoke:126)[Client]Sending message to
> destination : queue://echo
> 
> [DEBUG] 55:24 (ActiveMQSession.java:send:1542)Sending message:
> ActiveMQTextMessage {commandId = 0, responseRequired = false, messageId =
> ID:UNIVERSI-D25BF5-3730-1175007323030-1:0:1:1:1, originalDestination =
> null,
> originalTransactionId = null, producerId =
> ID:UNIVERSI-D25BF5-3730-1175007323030-1:0:1:1, destination = queue://echo,
> transactionId = null, expiration = 0, timestamp = 1175007324093, arrival =
> 0, correlationId = null, replyTo =
> temp-queue://ID:UNIVERSI-D25BF5-3730-1175007323030-1:0:1, persistent =
> true,
> type = null, priority = 4, groupID = null, groupSequence = 0,
> targetConsumerId = null, compressed = false, userID = null, content =
> null,
> marshalledProperties = null, dataStructure = null, redeliveryCounter = 0,
> size = 0, properties = null, readOnlyProperties = true, readOnlyBody =
> true,
> droppable = false, text = &amp;lt;?xml version='1.0'
> encoding='utf-8'?&amp;gt;&amp;lt;soapenv:Envelope
> xmlns:soapenv= "http://schemas.xmlsoap.org/soap/envelope/" 
> &amp;gt;&amp;lt;soapenv:Header
> /&amp;gt;&amp;lt;soapenv:Body&amp;gt;&amp;lt;echoString:echoString
> xmlns:echoString= "
> http://echo/jms/samples/axis2/apache/org" 
> &amp;gt;&amp;lt;echoString:Text&amp;gt;Isaac
> Asimov, The
> Foundation
> Trilogy&amp;lt;/echoString:Text&amp;gt;&amp;lt;/echoString:echoString&amp;gt;&amp;lt;/soapenv:Body&amp;gt;&amp;lt;/soapenv:Envelope&amp;gt;}
> 
> [DEBUG] 55:24 (JMSSender.java:invoke:147)Waiting for a maximum of 30000ms
> for a response message to destination :
> temp-queue://ID:UNIVERSI-D25BF5-3730-1175007323030-1:0:1
> 
> 
> 
> asankha wrote:
>   
>   
>     
> 
> 
>   
> 
> 
> Yes, I think there was some confusion as to which build the patch for
> the particular JIRA went in.. so could you try with the 1.2 RC1 or the
> latest nighly build and let me know? The information in the general JMS
> transport configuration should suffice for you to get it started 
> 
> asankha 
> 
> lee hanu wrote:
> 
>   Thanks Asanka,
> I don't see the INFO message for tomcat.
> 
> I am using Tomcat 5.5(not the axis2 standalone). I am doing this against
> axis2 1.1.1. Do I have to use the latest nightlies for this to work? Can I
> use Axis2 1.2 RC1?
> 
> Thanks
> 
> 
> asankha wrote:
>   
>   
>     
> I assume you are running a standalone client against your JMS web
> service echo. However it seems like your echo service is not correctly
> deployed for JMS. 
> 
> Can you confirm that the JMS transport has started in your Axis2
> deployment on Tomcat? You should see an "[INFO] JMS Transport Receiver
> (Listener) initialized..." if it has. If you do not see this message,
> please read https://issues.apache.org/jira/browse/AXIS2-1488    
> 
> Also let me know if you are trying this on the latest trunk or on a
> release - if so which version 
> 
> asankha 
> 
> lee hanu wrote:
> 
>   I did all the steps mentioned in the JMS axis2 tutorial.  I get the
> following
> exception. Any suggestions what I am doing wrong here. I am using Tomcat
> 5.5
> and ActiveMQ. Do I need to do any additional configuration in the tomcat
> other than the steps mentioned in the Axis2 JMS User Guide.
> 
> WARNING: Cannot get or lookup JMS destination : echo from url :
> jms:/echo?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;amp;amp;amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;amp;amp;amp;java.naming.provider.url=tcp://localhost:61616
> : echo
> Mar 26, 2007 2:41:54 PM org.apache.axis2.transport.jms.JMSSender invoke
> WARNING: Did not receive a JMS response within 30000 ms to destination :
> queue://echo
> org.apache.axis2.AxisFault: Incoming message input stream is null
> 	at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:64)
> 	at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:252)
> 	at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
> 	at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
> 	at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
> 	at org.apache.axis2.samples.jms.echo.ClientOne.main(ClientOne.java:34)
> 
> Thanks
> 
> 
> lee hanu wrote:
>   
>   
>     Sumedha,
> Thanks for the step by step explanation. That was helpful but that was not
> exactly what I was looking for. I am looking for a working JMS sample.
> 
> Thanks
> 
> sumedha rubasinghe wrote:
>     
>     
>       Hi,
> Try the following steps.(All these are mentioned in the url you
> mentioned,
> but check &amp;amp;amp;amp; see if you have missed anything ;-) )
> 
> 1.Download &amp;amp;amp;amp; start ActiveMQ from apache.(Do not change
> default
> ports)
> 
> 2.Open &amp;amp;amp;lt;AXIS2_HOME&amp;amp;amp;gt;/conf/axis2.xml
> 
> 3.Uncomment transport receiver part for JMS.
>    i.e. section starting with...
>     &amp;amp;amp;lt;transportReceiver name="jms"
> 
> 
> 4.Uncomment line setting transport sender for JMS.
>    i.e. line starting with
>     &amp;amp;amp;lt;transportSender name="jms"
> 
> 5.Start Axis Server by running
> &amp;amp;amp;lt;AXIS2_HOME&amp;amp;amp;gt;/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 &amp;amp;amp;amp; &amp;amp;amp;lt;JAVA_HOME&amp;amp;amp;gt;/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
> &amp;amp;amp;amp;
> JMS server is established),change you client code with following.
> 
> String url =
> "jms:/&amp;amp;amp;lt;ABCDE&amp;amp;amp;gt;?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;amp;amp;amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;amp;amp;amp;java.naming.provider.url=tcp://localhost:61616";
> 
> //Replace &amp;amp;amp;lt;ABCDE&amp;amp;amp;gt; with you service name.
> 
> 
> //and add following property to client
> options.setProperty(Constants.Configuration.TRANSPORT_URL, url);
> 
> 
> 10.Add &amp;amp;amp;lt;ACTIVEMQ_HOME&amp;amp;amp;gt;/lib/*.jar to
> classpath
> &amp;amp;amp;amp; run
> the client.
> 
> 
> 
> Good luck!!!!! Happy messaging with JMS ;-)
> 
> /sumedha
> 
> 
>       
>       
>         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
> http://ws.apache.org/axis2/1_1_1/jms-transport.html     Axis2/Java - JMS
> transport.
> 
> Thanks
> Nishant
> --
> View this message in context:
> http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9621016    
> Sent from the Axis - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org    
> For additional commands, e-mail: axis-user-help@ws.apache.org    
> 
> 
>         
>       
>       
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org    
> For additional commands, e-mail: axis-user-help@ws.apache.org    
> 
> 
> 
>       
>     
>     
>     
>   
>   
>   
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org   
> For additional commands, e-mail: axis-user-help@ws.apache.org   
> 
> 
> 
>     
>   
>   
>   
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org  
> For additional commands, e-mail: axis-user-help@ws.apache.org  
> 
> 
> 
>     
>   
>   http://www.nabble.com/file/7460/ClientOne.java   ClientOne.java 
>   
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org 
> For additional commands, e-mail: axis-user-help@ws.apache.org 
> 
> 
> 
>     
>   
>   
>   
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9697754
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis2 JMS samples?

Posted by lee hanu <ni...@yahoo.com>.
Yes it has started. I am now using the Axis2 standalone server and I am using
Axis2 1.1.1. The follwoing is the console display.

Mar 27, 2007 11:08:55 AM
org.apache.axis2.transport.http.server.DefaultConnectionListener run
INFO: Listening on port 8080
Mar 27, 2007 11:08:56 AM org.apache.axis2.transport.jms.JMSListener init
INFO: JMS Transport Receiver (Listener) initialized...
Mar 27, 2007 11:08:56 AM org.apache.axis2.transport.jms.JMSConnectionFactory
listen
INFO: Connection factory : myTopicConnectionFactory initialized...
Mar 27, 2007 11:08:56 AM org.apache.axis2.transport.jms.JMSConnectionFactory
listen
INFO: Connection factory : myQueueConnectionFactory initialized...
Mar 27, 2007 11:08:56 AM org.apache.axis2.transport.jms.JMSConnectionFactory
listenOnDestination
WARNING: Cannot find destination : Version Creating a Queue with this name
Mar 27, 2007 11:08:56 AM org.apache.axis2.transport.jms.JMSConnectionFactory
listenOnDestination
WARNING: Cannot find destination : WsaMappingTest Creating a Queue with this
name
Mar 27, 2007 11:08:56 AM org.apache.axis2.transport.jms.JMSConnectionFactory
listenOnDestination
WARNING: Cannot find destination : MyService Creating a Queue with this name
Mar 27, 2007 11:08:57 AM org.apache.axis2.transport.jms.JMSConnectionFactory
listen
INFO: Connection factory : default initialized...
Mar 27, 2007 11:08:57 AM org.apache.axis2.transport.SimpleAxis2Server main
INFO: [SimpleAxisServer] Started



asankha wrote:
> 
> 
> 
> 
>   
> 
> 
> Still.. you haven't confirmed this from my previous email: 
> I assume you are running a standalone client against your JMS web
> &gt; service echo. However it seems like your echo service is not
> correctly
> &gt; deployed for JMS. 
> &gt; 
> &gt; Can you confirm that the JMS transport has started in your Axis2
> &gt; deployment on Tomcat? You should see an "[INFO] JMS Transport
> Receiver
> &gt; (Listener) initialized..." if it has. 
> Your JMS transport doesn't seem like it started properly.. do you see
> the above log message on your Axis2 when it starts? 
> 
> asankha 
> 
> lee hanu wrote:
> 
>   I am now trying to get this thing to work against the Axis2 standalone
> server. I am still getting the same exception. I am still using Axis2
> 1.1.1.
> So I turned the debug on using LOG4J and this part of the logging
> messages.
> Hope this helps to figure out my problem. My guess is that my client
> program
> is able to establish a connection to ActiveMQ but it is not getting any
> response. Also I attached the Simple Client I am using to test the JMS
> stuff. 
> Thanks 
> 
> [DEBUG] 55:22 (JMSSender.java:invoke:49)JMSSender invoke()
> 
> [ WARN] 55:22 (JMSOutTransportInfo.java:getDestination:108)Cannot get or
> lookup JMS destination : echo from url :
> jms:/echo?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;java.naming.provider.url=tcp://localhost:61616
> : echo
> 
> [DEBUG] 55:23 (WireFormatNegotiator.java:start:71)Sending: WireFormatInfo
> {
> version=2, properties={TightEncodingEnabled=true, CacheSize=1024,
> TcpNoDelayEnabled=true, SizePrefixDisabled=false, StackTraceEnabled=true,
> MaxInactivityDuration=30000, CacheEnabled=true}, magic=[A,c,t,i,v,e,M,Q]}
> 
> [DEBUG] 55:23 (WireFormatNegotiator.java:onCommand:102)Received
> WireFormat:
> WireFormatInfo { version=2, properties={TightEncodingEnabled=true,
> CacheSize=1024, TcpNoDelayEnabled=true, SizePrefixDisabled=false,
> StackTraceEnabled=true, MaxInactivityDuration=30000, CacheEnabled=true},
> magic=[A,c,t,i,v,e,M,Q]}
> 
> [DEBUG] 55:23
> (WireFormatNegotiator.java:onCommand:109)tcp://localhost/127.0.0.1:61616
> before negotiation: OpenWireFormat{version=2, cacheEnabled=false,
> stackTraceEnabled=false, tightEncodingEnabled=false,
> sizePrefixDisabled=false}
> 
> [DEBUG] 55:23
> (WireFormatNegotiator.java:onCommand:120)tcp://localhost/127.0.0.1:61616
> after negotiation: OpenWireFormat{version=2, cacheEnabled=true,
> stackTraceEnabled=true, tightEncodingEnabled=true,
> sizePrefixDisabled=false}
> 
> [DEBUG] 55:24 (StAXUtils.java:createXMLStreamWriter:205)XMLStreamWriter is
> com.ctc.wstx.sw.SimpleNsStreamWriter
> 
> [DEBUG] 55:24 (JMSSender.java:invoke:126)[Client]Sending message to
> destination : queue://echo
> 
> [DEBUG] 55:24 (ActiveMQSession.java:send:1542)Sending message:
> ActiveMQTextMessage {commandId = 0, responseRequired = false, messageId =
> ID:UNIVERSI-D25BF5-3730-1175007323030-1:0:1:1:1, originalDestination =
> null,
> originalTransactionId = null, producerId =
> ID:UNIVERSI-D25BF5-3730-1175007323030-1:0:1:1, destination = queue://echo,
> transactionId = null, expiration = 0, timestamp = 1175007324093, arrival =
> 0, correlationId = null, replyTo =
> temp-queue://ID:UNIVERSI-D25BF5-3730-1175007323030-1:0:1, persistent =
> true,
> type = null, priority = 4, groupID = null, groupSequence = 0,
> targetConsumerId = null, compressed = false, userID = null, content =
> null,
> marshalledProperties = null, dataStructure = null, redeliveryCounter = 0,
> size = 0, properties = null, readOnlyProperties = true, readOnlyBody =
> true,
> droppable = false, text = &lt;?xml version='1.0'
> encoding='utf-8'?&gt;&lt;soapenv:Envelope
> xmlns:soapenv= "http://schemas.xmlsoap.org/soap/envelope/"
> &gt;&lt;soapenv:Header
> /&gt;&lt;soapenv:Body&gt;&lt;echoString:echoString xmlns:echoString= "
> http://echo/jms/samples/axis2/apache/org" &gt;&lt;echoString:Text&gt;Isaac
> Asimov, The
> Foundation
> Trilogy&lt;/echoString:Text&gt;&lt;/echoString:echoString&gt;&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt;}
> 
> [DEBUG] 55:24 (JMSSender.java:invoke:147)Waiting for a maximum of 30000ms
> for a response message to destination :
> temp-queue://ID:UNIVERSI-D25BF5-3730-1175007323030-1:0:1
> 
> 
> 
> asankha wrote:
>   
>   
>     
> 
> 
>   
> 
> 
> Yes, I think there was some confusion as to which build the patch for
> the particular JIRA went in.. so could you try with the 1.2 RC1 or the
> latest nighly build and let me know? The information in the general JMS
> transport configuration should suffice for you to get it started 
> 
> asankha 
> 
> lee hanu wrote:
> 
>   Thanks Asanka,
> I don't see the INFO message for tomcat.
> 
> I am using Tomcat 5.5(not the axis2 standalone). I am doing this against
> axis2 1.1.1. Do I have to use the latest nightlies for this to work? Can I
> use Axis2 1.2 RC1?
> 
> Thanks
> 
> 
> asankha wrote:
>   
>   
>     
> I assume you are running a standalone client against your JMS web
> service echo. However it seems like your echo service is not correctly
> deployed for JMS. 
> 
> Can you confirm that the JMS transport has started in your Axis2
> deployment on Tomcat? You should see an "[INFO] JMS Transport Receiver
> (Listener) initialized..." if it has. If you do not see this message,
> please read https://issues.apache.org/jira/browse/AXIS2-1488   
> 
> Also let me know if you are trying this on the latest trunk or on a
> release - if so which version 
> 
> asankha 
> 
> lee hanu wrote:
> 
>   I did all the steps mentioned in the JMS axis2 tutorial.  I get the
> following
> exception. Any suggestions what I am doing wrong here. I am using Tomcat
> 5.5
> and ActiveMQ. Do I need to do any additional configuration in the tomcat
> other than the steps mentioned in the Axis2 JMS User Guide.
> 
> WARNING: Cannot get or lookup JMS destination : echo from url :
> jms:/echo?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;amp;amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;amp;amp;java.naming.provider.url=tcp://localhost:61616
> : echo
> Mar 26, 2007 2:41:54 PM org.apache.axis2.transport.jms.JMSSender invoke
> WARNING: Did not receive a JMS response within 30000 ms to destination :
> queue://echo
> org.apache.axis2.AxisFault: Incoming message input stream is null
> 	at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:64)
> 	at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:252)
> 	at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
> 	at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
> 	at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
> 	at org.apache.axis2.samples.jms.echo.ClientOne.main(ClientOne.java:34)
> 
> Thanks
> 
> 
> lee hanu wrote:
>   
>   
>     Sumedha,
> Thanks for the step by step explanation. That was helpful but that was not
> exactly what I was looking for. I am looking for a working JMS sample.
> 
> Thanks
> 
> sumedha rubasinghe wrote:
>     
>     
>       Hi,
> Try the following steps.(All these are mentioned in the url you
> mentioned,
> but check &amp;amp;amp; see if you have missed anything ;-) )
> 
> 1.Download &amp;amp;amp; start ActiveMQ from apache.(Do not change default
> ports)
> 
> 2.Open &amp;amp;lt;AXIS2_HOME&amp;amp;gt;/conf/axis2.xml
> 
> 3.Uncomment transport receiver part for JMS.
>    i.e. section starting with...
>     &amp;amp;lt;transportReceiver name="jms"
> 
> 
> 4.Uncomment line setting transport sender for JMS.
>    i.e. line starting with
>     &amp;amp;lt;transportSender name="jms"
> 
> 5.Start Axis Server by running
> &amp;amp;lt;AXIS2_HOME&amp;amp;gt;/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 &amp;amp;amp; &amp;amp;lt;JAVA_HOME&amp;amp;gt;/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
> &amp;amp;amp;
> JMS server is established),change you client code with following.
> 
> String url =
> "jms:/&amp;amp;lt;ABCDE&amp;amp;gt;?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;amp;amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;amp;amp;java.naming.provider.url=tcp://localhost:61616";
> 
> //Replace &amp;amp;lt;ABCDE&amp;amp;gt; with you service name.
> 
> 
> //and add following property to client
> options.setProperty(Constants.Configuration.TRANSPORT_URL, url);
> 
> 
> 10.Add &amp;amp;lt;ACTIVEMQ_HOME&amp;amp;gt;/lib/*.jar to classpath
> &amp;amp;amp; run
> the client.
> 
> 
> 
> Good luck!!!!! Happy messaging with JMS ;-)
> 
> /sumedha
> 
> 
>       
>       
>         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
> http://ws.apache.org/axis2/1_1_1/jms-transport.html    Axis2/Java - JMS
> transport.
> 
> Thanks
> Nishant
> --
> View this message in context:
> http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9621016   
> Sent from the Axis - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org   
> For additional commands, e-mail: axis-user-help@ws.apache.org   
> 
> 
>         
>       
>       
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org   
> For additional commands, e-mail: axis-user-help@ws.apache.org   
> 
> 
> 
>       
>     
>     
>     
>   
>   
>   
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org  
> For additional commands, e-mail: axis-user-help@ws.apache.org  
> 
> 
> 
>     
>   
>   
>   
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org 
> For additional commands, e-mail: axis-user-help@ws.apache.org 
> 
> 
> 
>     
>   
>   http://www.nabble.com/file/7460/ClientOne.java  ClientOne.java 
>   
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9696663
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis2 JMS samples?

Posted by lee hanu <ni...@yahoo.com>.
I am now trying to get this thing to work against the Axis2 standalone
server. I am still getting the same exception. I am still using Axis2 1.1.1.
So I turned the debug on using LOG4J and this part of the logging messages.
Hope this helps to figure out my problem. My guess is that my client program
is able to establish a connection to ActiveMQ but it is not getting any
response. Also I attached the Simple Client I am using to test the JMS
stuff. 
Thanks 

[DEBUG] 55:22 (JMSSender.java:invoke:49)JMSSender invoke()

[ WARN] 55:22 (JMSOutTransportInfo.java:getDestination:108)Cannot get or
lookup JMS destination : echo from url :
jms:/echo?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616
: echo

[DEBUG] 55:23 (WireFormatNegotiator.java:start:71)Sending: WireFormatInfo {
version=2, properties={TightEncodingEnabled=true, CacheSize=1024,
TcpNoDelayEnabled=true, SizePrefixDisabled=false, StackTraceEnabled=true,
MaxInactivityDuration=30000, CacheEnabled=true}, magic=[A,c,t,i,v,e,M,Q]}

[DEBUG] 55:23 (WireFormatNegotiator.java:onCommand:102)Received WireFormat:
WireFormatInfo { version=2, properties={TightEncodingEnabled=true,
CacheSize=1024, TcpNoDelayEnabled=true, SizePrefixDisabled=false,
StackTraceEnabled=true, MaxInactivityDuration=30000, CacheEnabled=true},
magic=[A,c,t,i,v,e,M,Q]}

[DEBUG] 55:23
(WireFormatNegotiator.java:onCommand:109)tcp://localhost/127.0.0.1:61616
before negotiation: OpenWireFormat{version=2, cacheEnabled=false,
stackTraceEnabled=false, tightEncodingEnabled=false,
sizePrefixDisabled=false}

[DEBUG] 55:23
(WireFormatNegotiator.java:onCommand:120)tcp://localhost/127.0.0.1:61616
after negotiation: OpenWireFormat{version=2, cacheEnabled=true,
stackTraceEnabled=true, tightEncodingEnabled=true, sizePrefixDisabled=false}

[DEBUG] 55:24 (StAXUtils.java:createXMLStreamWriter:205)XMLStreamWriter is
com.ctc.wstx.sw.SimpleNsStreamWriter

[DEBUG] 55:24 (JMSSender.java:invoke:126)[Client]Sending message to
destination : queue://echo

[DEBUG] 55:24 (ActiveMQSession.java:send:1542)Sending message:
ActiveMQTextMessage {commandId = 0, responseRequired = false, messageId =
ID:UNIVERSI-D25BF5-3730-1175007323030-1:0:1:1:1, originalDestination = null,
originalTransactionId = null, producerId =
ID:UNIVERSI-D25BF5-3730-1175007323030-1:0:1:1, destination = queue://echo,
transactionId = null, expiration = 0, timestamp = 1175007324093, arrival =
0, correlationId = null, replyTo =
temp-queue://ID:UNIVERSI-D25BF5-3730-1175007323030-1:0:1, persistent = true,
type = null, priority = 4, groupID = null, groupSequence = 0,
targetConsumerId = null, compressed = false, userID = null, content = null,
marshalledProperties = null, dataStructure = null, redeliveryCounter = 0,
size = 0, properties = null, readOnlyProperties = true, readOnlyBody = true,
droppable = false, text = <?xml version='1.0'
encoding='utf-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header
/><soapenv:Body><echoString:echoString xmlns:echoString="
http://echo/jms/samples/axis2/apache/org"><echoString:Text>Isaac Asimov, The
Foundation
Trilogy</echoString:Text></echoString:echoString></soapenv:Body></soapenv:Envelope>}

[DEBUG] 55:24 (JMSSender.java:invoke:147)Waiting for a maximum of 30000ms
for a response message to destination :
temp-queue://ID:UNIVERSI-D25BF5-3730-1175007323030-1:0:1



asankha wrote:
> 
> 
> 
> 
>   
> 
> 
> Yes, I think there was some confusion as to which build the patch for
> the particular JIRA went in.. so could you try with the 1.2 RC1 or the
> latest nighly build and let me know? The information in the general JMS
> transport configuration should suffice for you to get it started 
> 
> asankha 
> 
> lee hanu wrote:
> 
>   Thanks Asanka,
> I don't see the INFO message for tomcat.
> 
> I am using Tomcat 5.5(not the axis2 standalone). I am doing this against
> axis2 1.1.1. Do I have to use the latest nightlies for this to work? Can I
> use Axis2 1.2 RC1?
> 
> Thanks
> 
> 
> asankha wrote:
>   
>   
>     
> I assume you are running a standalone client against your JMS web
> service echo. However it seems like your echo service is not correctly
> deployed for JMS. 
> 
> Can you confirm that the JMS transport has started in your Axis2
> deployment on Tomcat? You should see an "[INFO] JMS Transport Receiver
> (Listener) initialized..." if it has. If you do not see this message,
> please read https://issues.apache.org/jira/browse/AXIS2-1488  
> 
> Also let me know if you are trying this on the latest trunk or on a
> release - if so which version 
> 
> asankha 
> 
> lee hanu wrote:
> 
>   I did all the steps mentioned in the JMS axis2 tutorial.  I get the
> following
> exception. Any suggestions what I am doing wrong here. I am using Tomcat
> 5.5
> and ActiveMQ. Do I need to do any additional configuration in the tomcat
> other than the steps mentioned in the Axis2 JMS User Guide.
> 
> WARNING: Cannot get or lookup JMS destination : echo from url :
> jms:/echo?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;amp;java.naming.provider.url=tcp://localhost:61616
> : echo
> Mar 26, 2007 2:41:54 PM org.apache.axis2.transport.jms.JMSSender invoke
> WARNING: Did not receive a JMS response within 30000 ms to destination :
> queue://echo
> org.apache.axis2.AxisFault: Incoming message input stream is null
> 	at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:64)
> 	at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:252)
> 	at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
> 	at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
> 	at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
> 	at org.apache.axis2.samples.jms.echo.ClientOne.main(ClientOne.java:34)
> 
> Thanks
> 
> 
> lee hanu wrote:
>   
>   
>     Sumedha,
> Thanks for the step by step explanation. That was helpful but that was not
> exactly what I was looking for. I am looking for a working JMS sample.
> 
> Thanks
> 
> sumedha rubasinghe wrote:
>     
>     
>       Hi,
> Try the following steps.(All these are mentioned in the url you
> mentioned,
> but check &amp;amp; see if you have missed anything ;-) )
> 
> 1.Download &amp;amp; start ActiveMQ from apache.(Do not change default
> ports)
> 
> 2.Open &amp;lt;AXIS2_HOME&amp;gt;/conf/axis2.xml
> 
> 3.Uncomment transport receiver part for JMS.
>    i.e. section starting with...
>     &amp;lt;transportReceiver name="jms"
> 
> 
> 4.Uncomment line setting transport sender for JMS.
>    i.e. line starting with
>     &amp;lt;transportSender name="jms"
> 
> 5.Start Axis Server by running
> &amp;lt;AXIS2_HOME&amp;gt;/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 &amp;amp; &amp;lt;JAVA_HOME&amp;gt;/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
> &amp;amp;
> JMS server is established),change you client code with following.
> 
> String url =
> "jms:/&amp;lt;ABCDE&amp;gt;?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;amp;java.naming.provider.url=tcp://localhost:61616";
> 
> //Replace &amp;lt;ABCDE&amp;gt; with you service name.
> 
> 
> //and add following property to client
> options.setProperty(Constants.Configuration.TRANSPORT_URL, url);
> 
> 
> 10.Add &amp;lt;ACTIVEMQ_HOME&amp;gt;/lib/*.jar to classpath &amp;amp; run
> the client.
> 
> 
> 
> Good luck!!!!! Happy messaging with JMS ;-)
> 
> /sumedha
> 
> 
>       
>       
>         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
> http://ws.apache.org/axis2/1_1_1/jms-transport.html   Axis2/Java - JMS
> transport.
> 
> Thanks
> Nishant
> --
> View this message in context:
> http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9621016  
> Sent from the Axis - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org  
> For additional commands, e-mail: axis-user-help@ws.apache.org  
> 
> 
>         
>       
>       
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org  
> For additional commands, e-mail: axis-user-help@ws.apache.org  
> 
> 
> 
>       
>     
>     
>     
>   
>   
>   
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org 
> For additional commands, e-mail: axis-user-help@ws.apache.org 
> 
> 
> 
>     
>   
>   
>   
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> 
http://www.nabble.com/file/7460/ClientOne.java ClientOne.java 
-- 
View this message in context: http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9694131
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis2 JMS samples?

Posted by lee hanu <ni...@yahoo.com>.
Thanks Asanka,
I don't see the INFO message for tomcat.

I am using Tomcat 5.5(not the axis2 standalone). I am doing this against
axis2 1.1.1. Do I have to use the latest nightlies for this to work? Can I
use Axis2 1.2 RC1?

Thanks


asankha wrote:
> 
> 
> I assume you are running a standalone client against your JMS web
> service echo. However it seems like your echo service is not correctly
> deployed for JMS. 
> 
> Can you confirm that the JMS transport has started in your Axis2
> deployment on Tomcat? You should see an "[INFO] JMS Transport Receiver
> (Listener) initialized..." if it has. If you do not see this message,
> please read https://issues.apache.org/jira/browse/AXIS2-1488 
> 
> Also let me know if you are trying this on the latest trunk or on a
> release - if so which version 
> 
> asankha 
> 
> lee hanu wrote:
> 
>   I did all the steps mentioned in the JMS axis2 tutorial.  I get the
> following
> exception. Any suggestions what I am doing wrong here. I am using Tomcat
> 5.5
> and ActiveMQ. Do I need to do any additional configuration in the tomcat
> other than the steps mentioned in the Axis2 JMS User Guide.
> 
> WARNING: Cannot get or lookup JMS destination : echo from url :
> jms:/echo?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;java.naming.provider.url=tcp://localhost:61616
> : echo
> Mar 26, 2007 2:41:54 PM org.apache.axis2.transport.jms.JMSSender invoke
> WARNING: Did not receive a JMS response within 30000 ms to destination :
> queue://echo
> org.apache.axis2.AxisFault: Incoming message input stream is null
> 	at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:64)
> 	at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:252)
> 	at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
> 	at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
> 	at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
> 	at org.apache.axis2.samples.jms.echo.ClientOne.main(ClientOne.java:34)
> 
> Thanks
> 
> 
> lee hanu wrote:
>   
>   
>     Sumedha,
> Thanks for the step by step explanation. That was helpful but that was not
> exactly what I was looking for. I am looking for a working JMS sample.
> 
> Thanks
> 
> sumedha rubasinghe wrote:
>     
>     
>       Hi,
> Try the following steps.(All these are mentioned in the url you
> mentioned,
> but check &amp; see if you have missed anything ;-) )
> 
> 1.Download &amp; start ActiveMQ from apache.(Do not change default ports)
> 
> 2.Open &lt;AXIS2_HOME&gt;/conf/axis2.xml
> 
> 3.Uncomment transport receiver part for JMS.
>    i.e. section starting with...
>     &lt;transportReceiver name="jms"
> 
> 
> 4.Uncomment line setting transport sender for JMS.
>    i.e. line starting with
>     &lt;transportSender name="jms"
> 
> 5.Start Axis Server by running &lt;AXIS2_HOME&gt;/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 &amp; &lt;JAVA_HOME&gt;/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
> &amp;
> JMS server is established),change you client code with following.
> 
> String url =
> "jms:/&lt;ABCDE&gt;?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;java.naming.provider.url=tcp://localhost:61616";
> 
> //Replace &lt;ABCDE&gt; with you service name.
> 
> 
> //and add following property to client
> options.setProperty(Constants.Configuration.TRANSPORT_URL, url);
> 
> 
> 10.Add &lt;ACTIVEMQ_HOME&gt;/lib/*.jar to classpath &amp; run the client.
> 
> 
> 
> Good luck!!!!! Happy messaging with JMS ;-)
> 
> /sumedha
> 
> 
>       
>       
>         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
> http://ws.apache.org/axis2/1_1_1/jms-transport.html  Axis2/Java - JMS
> transport.
> 
> Thanks
> Nishant
> --
> View this message in context:
> http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9621016 
> Sent from the Axis - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org 
> For additional commands, e-mail: axis-user-help@ws.apache.org 
> 
> 
>         
>       
>       
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org 
> For additional commands, e-mail: axis-user-help@ws.apache.org 
> 
> 
> 
>       
>     
>     
>     
>   
>   
>   
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9679772
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis2 JMS samples?

Posted by lee hanu <ni...@yahoo.com>.
I did all the steps mentioned in the JMS axis2 tutorial.  I get the following
exception. Any suggestions what I am doing wrong here. I am using Tomcat 5.5
and ActiveMQ. Do I need to do any additional configuration in the tomcat
other than the steps mentioned in the Axis2 JMS User Guide.

WARNING: Cannot get or lookup JMS destination : echo from url :
jms:/echo?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616
: echo
Mar 26, 2007 2:41:54 PM org.apache.axis2.transport.jms.JMSSender invoke
WARNING: Did not receive a JMS response within 30000 ms to destination :
queue://echo
org.apache.axis2.AxisFault: Incoming message input stream is null
	at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:64)
	at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:252)
	at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
	at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
	at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
	at org.apache.axis2.samples.jms.echo.ClientOne.main(ClientOne.java:34)

Thanks


lee hanu wrote:
> 
> Sumedha,
> Thanks for the step by step explanation. That was helpful but that was not
> exactly what I was looking for. I am looking for a working JMS sample.
> 
> Thanks
> 
> sumedha rubasinghe wrote:
>> 
>> Hi,
>> 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 =
>> "jms:/<ABCDE>?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616";
>> 
>> //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 ;-)
>> 
>> /sumedha
>> 
>> 
>>>
>>> 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
>>> http://ws.apache.org/axis2/1_1_1/jms-transport.html Axis2/Java - JMS
>>> transport.
>>>
>>> Thanks
>>> Nishant
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9621016
>>> Sent from the Axis - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>>
>>>
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9679095
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis2 JMS samples?

Posted by lee hanu <ni...@yahoo.com>.
Sumedha,
Thanks for the step by step explanation. That was helpful but that was not
exactly what I was looking for. I am looking for a working JMS sample.

Thanks

sumedha rubasinghe wrote:
> 
> Hi,
> 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 =
> "jms:/<ABCDE>?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616";
> 
> //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 ;-)
> 
> /sumedha
> 
> 
>>
>> 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
>> http://ws.apache.org/axis2/1_1_1/jms-transport.html Axis2/Java - JMS
>> transport.
>>
>> Thanks
>> Nishant
>> --
>> View this message in context:
>> http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9621016
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9635836
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis2 JMS samples?

Posted by lee hanu <ni...@yahoo.com>.
Thilina,
Thanks so much. That is what I was lloking for.


Thilina Gunarathne wrote:
> 
> Please find the JMS sample attached to the
> https://issues.apache.org/jira/browse/AXIS2-1909
> 
> Yes.. We need to get this in to 1.2 release..
> ~Thilina
> 
> On 3/23/07, sumedha@wso2.com <su...@wso2.com> wrote:
>> Hi,
>> 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 =
>> "jms:/<ABCDE>?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616";
>>
>> //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 ;-)
>>
>> /sumedha
>>
>>
>> >
>> > 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
>> > http://ws.apache.org/axis2/1_1_1/jms-transport.html Axis2/Java - JMS
>> > transport.
>> >
>> > Thanks
>> > Nishant
>> > --
>> > View this message in context:
>> > http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9621016
>> > Sent from the Axis - User mailing list archive at Nabble.com.
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
> 
> 
> -- 
> Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9635883
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis2 JMS samples?

Posted by Sanka Samaranayake <ss...@gmail.com>.
At the moment I am doing some preparations of sample proposed in the JIRA.
I will commit it shortly.

Thanks,
Sanka

On 3/23/07, Thilina Gunarathne <cs...@gmail.com> wrote:
>
> Please find the JMS sample attached to the
> https://issues.apache.org/jira/browse/AXIS2-1909
>
> Yes.. We need to get this in to 1.2 release..
> ~Thilina
>
> On 3/23/07, sumedha@wso2.com <su...@wso2.com> wrote:
> > Hi,
> > 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 =
> >
> "jms:/<ABCDE>?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=
> org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616
> ";
> >
> > //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 ;-)
> >
> > /sumedha
> >
> >
> > >
> > > 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
> > > http://ws.apache.org/axis2/1_1_1/jms-transport.html Axis2/Java - JMS
> > > transport.
> > >
> > > Thanks
> > > Nishant
> > > --
> > > View this message in context:
> > > http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9621016
> > > Sent from the Axis - User mailing list archive at Nabble.com.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
> --
> Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Sanka Samaranayake
WSO2 Inc.

http://sankas.blogspot.com/
http://www.wso2.org/

Re: Axis2 JMS samples?

Posted by Thilina Gunarathne <cs...@gmail.com>.
Please find the JMS sample attached to the
https://issues.apache.org/jira/browse/AXIS2-1909

Yes.. We need to get this in to 1.2 release..
~Thilina

On 3/23/07, sumedha@wso2.com <su...@wso2.com> wrote:
> Hi,
> 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 =
> "jms:/<ABCDE>?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616";
>
> //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 ;-)
>
> /sumedha
>
>
> >
> > 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
> > http://ws.apache.org/axis2/1_1_1/jms-transport.html Axis2/Java - JMS
> > transport.
> >
> > Thanks
> > Nishant
> > --
> > View this message in context:
> > http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9621016
> > Sent from the Axis - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis2 JMS samples?

Posted by su...@wso2.com.
Hi,
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 =
"jms:/<ABCDE>?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616";

//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 ;-)

/sumedha


>
> 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
> http://ws.apache.org/axis2/1_1_1/jms-transport.html Axis2/Java - JMS
> transport.
>
> Thanks
> Nishant
> --
> View this message in context:
> http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9621016
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org