users@glassfish.java.net

How to pass security context to timeout callback method of Timer Service

From: <glassfish_at_javadesktop.org>
Date: Tue, 20 Apr 2010 05:42:08 PDT

Hi,

when the timeout callback method of my stateless EJB is called it seems that there is no security context set within that method (the principal is always returned as "ANONYMOUS"). As I am accessing restricted methods of other beans, I'd like to propagate the security context of the "scheduler" to the actual execution of the task.
Is there any way to achieve this?

Thanks,
Dominik
[Message sent by forum member 'dmt_']

http://forums.java.net/jive/thread.jspa?messageID=398027