• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

InitialContext problem

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
I�m working in WSAD and are trying to do a lookup aginst a session bean from a java class in a webproject.

InitialContext ctx = new InitialContext();
Object obj = ctx.lookup("ejb/Db2Connect");
Db2ConnectHome home = (Db2ConnectHome) PortableRemoteObject.narrow(obj, Db2ConnectHome.class);
Db2Connect db2Connect = home.create();
db2Connect.updateDB2();
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So tell us a little more information.

1. Are you getting an Exception? WHat is it? and Post the Exception text here.
2. Is this lookup done on the client or server side?
3. If on the client side, do you have a jndi.properties file that points to your server?

Thanks

Mark
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic