axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Asankha C. Perera" <asan...@wso2.com>
Subject Re: Axis2 JMS samples?
Date Tue, 27 Mar 2007 04:00:52 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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<br>
<br>
asankha<br>
<br>
lee hanu wrote:
<blockquote cite="mid9679772.post@talk.nabble.com" type="cite">
  <pre wrap="">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:
  </pre>
  <blockquote type="cite">
    <pre wrap="">
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 <a class="moz-txt-link-freetext" href="https://issues.apache.org/jira/browse/AXIS2-1488">https://issues.apache.org/jira/browse/AXIS2-1488</a>


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
<a class="moz-txt-link-freetext" href="http://ws.apache.org/axis2/1_1_1/jms-transport.html">http://ws.apache.org/axis2/1_1_1/jms-transport.html</a>
 Axis2/Java - JMS
transport.

Thanks
Nishant
--
View this message in context:
<a class="moz-txt-link-freetext" href="http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9621016">http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9621016</a>

Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-unsubscribe@ws.apache.org">axis-user-unsubscribe@ws.apache.org</a>

For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-help@ws.apache.org">axis-user-help@ws.apache.org</a>



        
      
      
---------------------------------------------------------------------
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-unsubscribe@ws.apache.org">axis-user-unsubscribe@ws.apache.org</a>

For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-help@ws.apache.org">axis-user-help@ws.apache.org</a>




      
    
    
    
  
  
  




---------------------------------------------------------------------
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-unsubscribe@ws.apache.org">axis-user-unsubscribe@ws.apache.org</a>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-help@ws.apache.org">axis-user-help@ws.apache.org</a>



    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
</body>
</html>

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


Mime
View raw message