SCBCD Guide | ||
Home | SCJP | SCWCD | SCBCD | SCEA | SCSA |
<assembly-descriptor> <!--optional-->
<unchecked /><security-role> <!--optional-->
<description>Security role description</description>
<role-name>Administrator</role-name>
</security-role>
<method-permission> <!--optional-->
OR<role-name>everyone</role-name>
<method>
<!--Style 1--><description>Style 1 Method description</description>
<ejb-name>SomeEntityBean</ejb-name>
<method-intf>Home / Remote / LocalHome / Local</method-intf>
<method-name>*</method-name>
</method>
<method> <!--Style 2-->
<description>Style 2 Method description</description>
<ejb-name>SomeEntityBean</ejb-name>
<method-intf>Home / Remote / LocalHome / Local</method-intf>
<method-name>create</method-name>
</method>
<method> <!--Style 3-->
<description>Style 3 Method description</description>
<ejb-name>SomeEntityBean</ejb-name>
<method-intf>Home / Remote / LocalHome / Local</method-intf>
<method-name>createSomething</method-name>
<method-params> <!--optional-->
<method-param>java.lang.String</method-param>
</method-params>
</method>
</method-permission>
<container-transaction> <!--optional-->
<description>Container transaction description</description>
<method> <!-- Style 1, 2 or 3-->
<ejb-name>SomeEntityBean</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required/RequiresNew/Mandatory/Never/Supports/NotSupported</trans-attribute>
</container-transaction>
<exclude-list> <!--optional-->
<description>Exclude list description</description>
<method> <!-- Style 1, 2 or 3-->
<ejb-name>SomeEntityBean</ejb-name>
<method-name>method1</method-name>
</method>
</exclude-list>
</assembly-descriptor>
<ejb-client-jar>someOtherClientJarFile.jar</ejb-client-jar> <!-- optional -->
</ejb-jar>