Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

trouble accessing jms queue in jboss/tomcat axis  RSS feed

Ravi Veerla
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am trying to a develop a webservice, which needs to interact with JMS queues and topics created on a server running on JBoss. I tried a simple a console application and it worked fine. I have installed axis on jboss to use for creating webservices. when i try to lookup the queue it looks like the code is not able to resolve the queue. to make it clear here is the code

Context ctx = new InitialContext();
cf_callset = (QueueConnectionFactory)ctx.lookup("XAConnectionFactory");
cf_resultset = (TopicConnectionFactory) ctx.lookup("XAConnectionFactory");
m_callSetQueue = (Queue)ctx.lookup("CallSetQueue");
m_resultSetTopic = (Topic)ctx.lookup("ResultSetTopic");

when i run this code snippet it throws a Naming exception saying,
CallSetQueue not bound . I was able to access the queue using the same code in the console application

i tried to print the properties that are set in the context, and this is what i got.

java.naming.provider.url --> localhost:1099
java.naming.factory.initial --> org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs --> org.jboss.naming rg.jnp.interfaces rg.jboss.naming rg.jnp.interfaces

if you observe the value of the property java.naming.factory.url.pkgs the value org.jboss.naming rg.jnp.interfaces is repeated twice. when i printed the properties in the console application the value is just org.jboss.naming rg.jnp.interfaces could this be some issue.

any help will be greatly appreciated.

thank you
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!