dcsimg
jndi error in JMS pub/sub application
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   horatiu_muresan
Posted On:   Tuesday, May 22, 2001 06:52 AM

I'm running pub/sub JMS example. (I'm using j2eesdk1.3 from Sun)
On the same machine is working very fine.
On different machines, I have the following error (the Publisher is not on the same machine with JMS server)
JNDI lookup failed: javax.naming.CommunicationException: Can't find
SerialContextProvider

I think is about the JMS setting provisder url:
how I can set that property for JMS running on another machine?
I didn't find it on the Sun documentation.

Re: jndi error in JMS pub/sub application

Posted By:   sivaram_ponraj  
Posted On:   Tuesday, June 19, 2001 12:38 AM

Yes u r right This is problem with the
ContextFactory.U create the context like this with the provider url as ur JNDI holding server url and then u look up for the Queue or Topic It will work.U can do this by

Hashtable ht1 = new Hashtable();
ht1.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
ht1.put(Context.PROVIDER_URL, "t3://127.0.0.1:7001");
InitialContext ic = new InitialContext(ht1);
About | Sitemap | Contact