Rupp,Heiko wrote:

Because there are "role-name" and "unchecked" parameters on ejb.bean , all the finders and interface
tags.



Even better :-)



------------------------------------------------------- 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. _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user



Are you saying that by virtue of having the above two parameters on the tags mentioned above that it is possible to specify security roles (as per the assembly descriptor) without a security-role tag?

I would like to specify a security-role-ref tag with role-name and role-link parameters for this bean and then declare the <security-role>s in my assembly descriptor like this:

<ejb-jar>
<display-name>Common Module</display-name>
<enterprise-beans>
<session>
<description>Test session facade</description>
<ejb-name>TestSessionBean</ejb-name>
<home>com.mycompany.blank.common.interfaces.TestSessionHome</home>
<remote>com.mycompany.blank.common.interfaces.TestSession</remote>
<ejb-class>com.mycompany.blank.common.ejbs.TestSessionBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<security-role-ref>
<role-name>admin</role-name>
<role-link>admin</role-link>
</security-role-ref>
</session>


</enterprise-beans>

<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>TestSessionBean</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
<method-permission>
<unchecked/>
<method>
<ejb-name>TestSessionBean</ejb-name>
<method-name>*</method-name>
</method>
</method-permission>


       <security-role>
           <description>admin</description>
           <role-name>admin</role-name>
       </security-role>
       <security-role>
           <description>Supplier</description>
           <role-name>supplier</role-name>
       </security-role>
       <security-role>
           <description>Customer</description>
           <role-name>customer</role-name>
       </security-role>
   </assembly-descriptor>

</ejb-jar>

Bear with me please if I have this mixed up, I am new to XDoclet.

Thanks
jim



-------------------------------------------------------
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.
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to