This content has been marked as final.
Show 7 replies
-
1. Re: RanAs with multiple roles for MDB
j2ee_junkie May 26, 2006 12:47 PM (in response to lis0x90)review http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd. I do not see any restriction on this.
let me know if you still do not agree, cgriffith -
2. Re: RanAs with multiple roles for MDB
lis0x90 May 26, 2006 2:29 PM (in response to lis0x90)Thanks for reply.
But given schema define that node `security-identity' with type `security-identityType' (name from xsd) permit existing of only one `run-as' or `use-caller-identity' node.
So my question is open again... =( -
3. Re: RanAs with multiple roles for MDB
j2ee_junkie May 26, 2006 2:56 PM (in response to lis0x90)Yes, but how many security-identities can an j2ee component have?
-
4. Re: RanAs with multiple roles for MDB
lis0x90 May 26, 2006 3:05 PM (in response to lis0x90)Only one:
<complexType name="message-driven-beanType"> <annotation> <documentation> ... </documentation> </annotation> <sequence> <group ref="j2ee:descriptionGroup"/> <element name="ejb-name" type="j2ee:ejb-nameType"/> <element name="ejb-class" type="j2ee:ejb-classType"/> <element name="messaging-type" type="j2ee:fully-qualified-classType" minOccurs="0"> <annotation> <documentation> .... </documentation> </annotation> </element> <element name="transaction-type" type="j2ee:transaction-typeType"/> <element name="message-destination-type" type="j2ee:message-destination-typeType" minOccurs="0"/> <element name="message-destination-link" type="j2ee:message-destination-linkType" minOccurs="0"/> <element name="activation-config" type="j2ee:activation-configType" minOccurs="0"/> <group ref="j2ee:jndiEnvironmentRefsGroup"/> <element name="security-identity" type="j2ee:security-identityType" minOccurs="0"/> </sequence> <attribute name="id" type="xsd:ID"/> </complexType>
-
5. Re: RanAs with multiple roles for MDB
j2ee_junkie May 26, 2006 3:46 PM (in response to lis0x90)I stand corrected. Sorry I did not read that schema correctly.
cgriffith -
6. Re: RanAs with multiple roles for MDB
starksm64 May 26, 2006 3:55 PM (in response to lis0x90)See "Assigning multiple roles to a RunAsIdentity" using the jboss.xml descriptor on the following wiki:
http://wiki.jboss.org/wiki/Wiki.jsp?page=RunAsIdentityCreation -
7. Re: RanAs with multiple roles for MDB
lis0x90 May 27, 2006 5:32 AM (in response to lis0x90)I read wiki and find answers. Big thanks for help