This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I need to invoke ejb3 beans in my struts2 action class in Websphere 7 server. As struts action is not a container managed component, I could not use DI to inject EJB3 beans. I 'm using the below JNDI lookup code in Websphere 7 server, but fails. Could anyone help me to provide JNDI EJB3 lookup URL/code for WAS7? What are the JNDI lookup methods available in WAS 7 for ejb3 and where could i find the documents please?. Thank you very much for helping me.
The other thing you can do is to look in the SystemOut.log for binding information for SampleEjbLocal. The log provides both short and long form JNDI bindings for all the objects that bind to the JNDI directory.
Let me know if this doesnt work
Joined: Aug 12, 2010
Thank you very much Deepak!!
The below lookup code worked, prefixed "ejblocal:" with the full qualified interface name. I found this in System.out log as you mentioned.