Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic


Makarand Parab
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All
i have a problem with jndi look up, just see if u can help me out
i have a session bean deployed on server "A" and my client is on m/c B. The client is a batch application, which calls the session bean on server "A"
Now when i do a look up in my client code, it gives me "javax.naming.NameNotFoundException".

Here is the same code abt look up

Properties properties = new Properties();
properties.put( javax.naming.Context.PROVIDER_URL, "IIOP://" );

properties.put( javax.naming.Context.INITIAL_CONTEXT_FACTORY,

Context ctx = new InitialContext(properties);

Object ref = ctx.lookup("InSystems/Corr/Api/CorrXmlApi");
corrXmlApiHome = (CorrXmlApiHome)PortableRemoteObject.narrow(ref, CorrXmlApiHome.class);
corrXmlApi = corrXmlApiHome.create();
catch(NamingException nep)
throw new RenewalException(ExceptionConstant.ErrorMessage_RenewalProcesser_1, nep);

Same jndi name exist in ibm-ejb-jar-bnd.xml file. Can u let me know what's the problem.

Makarand Parab
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic