Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jndi properties for looking up generic messaging provider in websphere.

 
Tirthankar Dutta Chaudhuri
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i need to send a message to a queue in generic jms provider in websphere ,
But i not getting the jndi lookup . what will be the provider url .
I have both the application server installed in my local host.
Thanks ,
Tirthankar
 
Karthika Kannan
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

This is what i used and it worked within an MDB.It doesnt work when its used from a client.

hashtable.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
hashtable.put(Context.PROVIDER_URL,"iiop://localhost:2809");
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic