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

JNDI object missing!!! Please help me find it :|  RSS feed

alok khemka
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using j2ee1.4 app serv and created a JMS connection factory with the JNDI name of "jms/QueueConnectionFactory". when i try to get the factory in my app client with the following code:
Hashtable prop = new Hashtable();
prop.put("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory");
prop.put("java.naming.provider.url", "iiop://localhost:3700");

Context ctx = new InitialContext(prop);
Object objRef = ctx.lookup("jms/QueueConnectionFactory");
i get an error saying:

javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFoun
d: IDL]
at com.sun.jndi.cosnaming.ExceptionMapper.mapException(
at com.sun.jndi.cosnaming.CNCtx.callResolve(
at com.sun.jndi.cosnaming.CNCtx.lookup(
at com.sun.jndi.cosnaming.CNCtx.lookup(
at javax.naming.InitialContext.lookup(
at Temp.main(
Caused by: org.omg.CosNaming.NamingContextPackage.NotFound: IDL
at org.omg.CosNaming._NamingContextExtStub.resolve(
at com.sun.jndi.cosnaming.CNCtx.callResolve(
... 4 more
I am fighting with this for a long time and am still clueless about where did the factory object go in the JNDI maze!!!
help me find it!!! any help is really appriciated
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!