I have a Spring Controller and 2 Session bean.
When I declare 2 bean (as follow code), I can use them normally
But when I use UsersFacede in LoginService, userEntityFacade's null.Code:@Controller @RequestMapping("index.htm") public class LoginController { @EJB private LoginService loginService; @EJB private UsersFacade usersFacade;
where I have to configure to use UsersFacade?
Sorry, I do not know much English and my poor knowledge.Code:@Stateless public class LoginService { @EJB private UsersFacade userEntityFacade; public String authentication() { return "ee:" + userEntityFacade; } }
I'm trying.
Thanks a lot.


Reply With Quote