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

JNDI lookup failure

331 Views

Hi Experts!

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

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d06315a6-e66e-2910-039c-ba8bbbd23702

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