Results 1 to 1 of 1

Thread: [Help] Error using EJB

  1. #1

    Question [Help] Error using EJB

    I have a Spring Controller and 2 Session bean.
    When I declare 2 bean (as follow code), I can use them normally

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •