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 am trying to look up an EJB in a Spring Controller. But I am unable to get reference to the EJB and the lookup fails throwing a NameNotFoundException.
My application is deployed in TOMEE.
When I look up the same EJB in a servlet, the reference is obtained successfully, but somehow Spring is unable to get it.
Below is my configuration:
1) EJB Name: AuctionManagerImpl (Deployed as a part of JAR placed in WEB-INF/lib of the web application)
2) Spring Servlet XML entry:
3) Spring Controller has a member variable of EJB interface.
Also tried looking up with JNDITemplate:
Tried various combinations like AuctionManagerImplLocal,local/AuctionManagerImpl etc but no luck.
I can see the JNDI name binding in TOMEE logs as well but Spring Controller cant get to it.
Struggling for a long time so any help would be really appreciated!!!