you can do this,provided that those two are properly integrated...coz JNDI lookup is not possible via pure Webserver components. They have to be servlets or JSP that are hosted in iAS web Engine. I remember changing a lot of stuff on iAB project properties....

Please refer to the multitude of samples that demonstrate JNDI lookups.

For example, check out the HelloWorld sample for a servlet accesing an

EJB. Alternatively, check out the ias/ias-samples/j2eeguide/cart/

sample.

also check you JSP/Servlet code whether it has the following kidna lookup code

 

p.put("javax.naming.factory.initial","com.netscape.server.jndi.RootContextFactory");

javax.naming.Context ctx = new javax.naming.InitialContext(p);

procument.slbExchangeHome slbExchaHome = (procument.slbExchangeHome) ctx.lookup("java:comp/env/Exchange");

slbExchangeRI = slbExchaHome.create();

With iPlanet .. it's easy if you do the development on iAB do configure the DDs. JNDI names etc...
 
cheers
Vaheesan
-----Original Message-----
From: Vikram Naik <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, October 03, 2001 11:02 AM
Subject: Looking up for EJB's deployed in iAS 6.0 sp1 from iWS.......

Hello,

            I am trying to look up  for the ejb’s  deployed  in a application server ( iAS 6.0 sp1 )  from a webserver  ( iWS ) through JNDI ….  But it throws exception…. Is it possible to do so……… Pls guide me through

 

Thanx,

 

Vikram Naik

 

 

Reply via email to