• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

NameNotFoundException

 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
Even 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
try
{

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

properties.put( javax.naming.Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.websphere.naming.WsnInitialContextFactory");

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)
{
nep.printStackTrace();
Renewalog.warn(ExceptionConstant.ErrorMessage_RenewalProcesser_1);
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.

Regards
Makarand Parab
 
I suggest huckleberry pie. But the only thing on the gluten free menu is this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic