-
1. Re: How can I define the caller identity of an ejb timer ?
inet_gbo Jul 2, 2012 11:50 PM (in response to jw)Hi,
did you find a solution?
I have the same problem.
Thanks
Günther
-
2. Re: How can I define the caller identity of an ejb timer ?
jw Jul 9, 2012 3:46 AM (in response to inet_gbo)Replace your ejb-jar.xml with jboss-ejb3.xml:
<?xml version="1.0"?>
<jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:s="urn:security"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd
http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"
version="3.1"
impl-version="2.0">
<assembly-descriptor>
<s:security>
<ejb-name>MyBean</ejb-name>
<s:run-as-principal>my-user</s:run-as-principal>
<s:security-domain>my-security-domain</s:security-domain>
</s:security>
</assembly-descriptor>
</jboss:ejb-jar>