6 Replies Latest reply on Aug 16, 2013 9:29 AM by jaikiran pai

    Login from Timerbean

    Podiki Stifado Newbie

      I've got a timer bean that starts up a batch job by calling another EJB. I want the batch to run under a certain user so I've tried to set this up. I have tried two ways of setting this up. One way is by doing a context lookup of the bean doing the batch. I also tried it by setting up a jboss-ejb3.xml where I specify a role-name and a run-as-principal, but both methods don't seem to work. Which of these two ways would be the preferable way and does anybody have a working example of this? The problem I'm having is that the batch is always run as user anonymous.