The point is here:
http://docs.oracle.com/javaee/6/api/javax/ejb/EJBContext.html#getCallerPrincipal()"The
Principal object that identifies the caller. This method never returns
null."

So we return "guest"

Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2013/6/7 hwaastad <[email protected]>
>
> Hi,
> yes, the role filtering works as it's supposed to.
>
> I'm just wondering why the output for principal name is changing form
guest
> to some other user when the scheduler fires an event.
>
> What I want to achieve is to log the user invoking the LogListener method.
> For all "logged in" users its OK but not for a Scheduler.
> Is it possible to configure a security-identity for run-as user in
> openejb-jar.xml or some other place?
>
> best regards,
> hw
>
>
>
> --
> View this message in context:
http://openejb.979440.n4.nabble.com/EJB-Scheduler-and-RunAs-tp4663519p4663527.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to