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
> &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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> http://www.nabble.com/file/7460/ClientOne.java ClientOne.java
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]