Jason: profile updated per instructions.
I am getting a naming exception:
Object not found in lookup, the entire lookup is ejb/facade.
The problem persists even with lookups that specify java:comp/env/ejb/facade or java:/ejb/facade.
The problem goes away if I use the runtime JNDI assigned by the server from NetWeaver's visual admin tool.
My questions are:
1. If I add the target bean to web.xml, can I still not use the reference name to lookup the object from the struts controller (actionclass)?
2. If not, the java:comp/env/ lookup cannot ever be used from a struts controller? I will have to stick with the runtime JNDI assignment made by the EJB container to the bean? This would cause obvious problems since the JNDI has to be hard-coded within the actionclass, not to mention maintenance if my application has to be ported on a different app server.
Roger: I have not passed initialcontext() parameters, but I can access the facade bean using direct JNDI lookup.
Any insights/corrections will be appreciated.
[ July 04, 2005: Message edited by: Radhakrishnan Iyyengar ]