Hi Shen
Now my axis2 server is listen to the queue, and How can I write a client to
call the service?
First of all lets make sure your service started on JMS successfully. If
it did, it should dump some information like the following:
2008-10-29 14:30:15,240 [-] [main] INFO JMSListener JMS Transport
Receiver/Listener initialized...
2008-10-29 14:30:15,315 [-] [main] INFO JMSConnectionFactory Connected
to the JMS connection factory : TopicConnectionFactory
2008-10-29 14:30:15,648 [-] [main] INFO JMSConnectionFactory Connection
factory : myTopicConnectionFactory initialized...
2008-10-29 14:30:15,651 [-] [main] INFO JMSConnectionFactory Connected
to the JMS connection factory : QueueConnectionFactory
2008-10-29 14:30:15,709 [-] [main] INFO JMSConnectionFactory Connection
factory : myQueueConnectionFactory initialized...
2008-10-29 14:30:15,712 [-] [main] INFO JMSConnectionFactory Connected
to the JMS connection factory : QueueConnectionFactory
2008-10-29 14:30:15,730 [-] [main] INFO JMSConnectionFactory Connection
factory : default initialized...
2008-10-29 14:30:15,731 [-] [main] INFO JMSListener JMS Listener started
2008-10-29 14:30:15,731 [-] [main] INFO JMSListener Starting to listen
on destination : SimpleStockQuoteService of type queue for service
SimpleStockQuoteService
2008-10-29 14:30:15,733 [-] [main] INFO JMSConnectionFactory Mapped
JNDI name : SimpleStockQuoteService and JMS Destination name :
SimpleStockQuoteService against service : SimpleStockQuoteService
2008-10-29 14:30:15,772 [-] [main] WARN JMSConnectionFactory Cannot
find destination : SimpleStockQuoteService. Creating a Queue
The JMS listener defaults to a Queue with the same name as your service
- unless you override this with the "transport.jms.Destination"
property. So make sure to create the required destination as necessary
as WLS does not auto create this like ActiveMQ. Once it starts
successfully, you should be able to post a text message (e.g.
"<hello/>") from the WLS console to this queue and see something
happening on the service. If this is all working, everything is fine.
I attached my TestClient and below attached my axis2.xml snippt:
Basically a client for a JMS service looks exactly the same as one for a
normal web service. Only the EPR or the "To" address would be a JMS URL
If you see any errors, posting your logs would help us better understand
any problem
asankha
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]