File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes JNDI lookup problem with two appservers in WSAD 4.0.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "JNDI lookup problem with two appservers in WSAD 4.0.3" Watch "JNDI lookup problem with two appservers in WSAD 4.0.3" New topic
Author

JNDI lookup problem with two appservers in WSAD 4.0.3

Michael Laufer
Greenhorn

Joined: May 30, 2002
Posts: 29
Hi,
we have the following problem while moving our application from to WSAD 4.0.3:
We've set two appservers in WSAD and face the problem that EJB clients that are
deployed on one apperver are not able to lookup any EJBs that are deplyoed on the
other appserver in WSAD.
It's seems taht we are not able to see the reomote JNDI tree, or is there only one?
Is this a known limitation of WSAD or are we making something complete wrong?
Any help is really appreciated.
Thanks in advance,
Michel
Ramesh Rajaram
Greenhorn

Joined: Aug 20, 2001
Posts: 8
Hi,
Could you copy-paste the lookup code and the exception being thrown. You have said that the application is being migrated to WAS 4.0.3....so i would like to know if previously also the application was running in two appserver instances??
cheers
Ramesh
Michael Laufer
Greenhorn

Joined: May 30, 2002
Posts: 29
Hi,
Michael Laufer
Greenhorn

Joined: May 30, 2002
Posts: 29
Hi, sorry pressed the button to early ;-) Yeah, this application is already running on WAS 4.0.3 with
two different appservers. But we developed until now with VAJ 4.0 and try now to migrate that stuff to WSAD.
Code phrase for the lookup:
1) lookup code phrase in the factory:
Object homeObject=initContext.lookup(jndiName);
with the variable jndi name defined as
"RemoteBDAPISession"

2) and then we get the following exception:
javax.naming.NameNotFoundException: RemoteBDAPISession

The same code works when we try the lookup from the appserver where the EJB is deployed, i.e. when the EJB
client is installed on the same appserver.
Thanks in advance.
Michel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNDI lookup problem with two appservers in WSAD 4.0.3