2 Replies Latest reply on Sep 24, 2013 1:52 AM by Wells G

    How should i do if i want to use a job to access @RequestScoped bean

    Wells G Novice

      Hi ,

       

          Now i have an requirement that using a job (may happened in the special time depends on config)  to access a bean with annotation @RequestScoped , but when i run it , it report : WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped .   I know it will work when change @RequestScoped to @ApplicationScoped , but now the bean only be configed to @RequestScoped . Does anyone have an advice ?


      Thanks !