I use Axis2 version 1.1.1 with JMS. I get the following warning when I send a message via JMS to the server: WARN org.apache.axis2.transport.jms.JMSOutTransportInfo - Cannot get or lookup JMS destination : StockQuoteService from url : jms:/ StockQuoteService?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory&java.naming.provider.url=jnp://localhost:1199 : StockQuoteService not bound

But the webservice works fine. I get the right response.

Is there a possibility to avoid this warning maybe by creating a special context in the client?

You seem to be using ActiveMQ? If so, ActiveMQ has this special feature that creates JMS destinations on demand,.. so they may not exist when you look for them, but you can post stuff and then they get created. However, normally destinations are administered objects which one needs to create before use. You will not get the WARN if it exists already...

asankha

Reply via email to