Skip to Content
Former Member
Nov 18, 2007 at 08:07 PM

JNDI lookup failure


Hi Experts!

I want to execute java proxy call from my standalone java application as described here in the 3.13 section:

I imported all the needed jar files I think.

My project is a simple java project not a ejb one.

In the ID I generated successfully the proxy object for the interface name FlightSeatAvailabilityQueryOut .

I could successfully get the initial context to my java application.

Now I want to look up my object called FlightQueryOut as the pdf said,but I can't, because the error said: <b>Object not found in lookup of FlightQueryOut</b>

my revelant code:

Object ref = ctx.lookup("FlightQueryOut");

How can I my bind my proxy object to my J2ee naming system?

It is not done automatically when I am generating the proxy in the ID?

If it does, then where can I see generated proxy object name in JNDI service in the J2ee engine?

I also tried the Object ref = ctx.lookup("java:comp/env/ejb/FlightQueryOut");

but it didn't work also.

Please help