• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

trouble accessing jms queue in jboss/tomcat axis

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Look! It's Leonardo da Vinci! And he brought a tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic