Ionel Gardais wrote:

Hi,

I got the scheduler working, the class I wrote is launched the way I want.
The problem is that it access EJB's that are secured by some roles.


How to specify the scheduler to run the class using a specific role ?

Thank you very much,
ionel




------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user

.

in ejb-jar.xml adding

<security-identity>
   <run-as>
       <role-name>YUORSECROLE</role-name>
   </run-as>
</security-identity>

to your <session> or <entity> tag

ciao,
kiuma



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to