Skip Headers
Oracle® Containers for J2EE Enterprise JavaBeans Developer's Guide
10g (10.1.3.1.0)
B28221-02
  Go To Documentation Library
Home
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
 
Next
Next
 

<assembly-descriptor>

In addition to specifying deployment information for individual beans, you can also specify addition deployment mapping information for security in the <assembly-descriptor> section. The <assembly-descriptor> section contains the following structure:

<assembly-descriptor>
  <security-role-mapping impliesAll=... name=...>
   <group name=... />
   <user name=... />
  </security-role-mapping>
  <message-destination-mapping location=... name=...>
  </message-destination-mapping>
  <default-method-access>
   <security-role-mapping impliesAll=... name=...>
    <group name=... />
    <user name=... />
   </security-role-mapping>
  </default-method-access>
</assembly-descriptor>

For information on each of these elements and subelements, see: the following

Examples

For examples of <assembly-descriptor> element configuration, see the following:

<security-role-mapping>

The <security-role-mapping> element is described in "Mapping Logical Roles to Users and Groups".

<message-destination-mapping>

<default-method-access>

The <default-method-access> element is described in "Specifying a Default Role Mapping for Undefined Methods".

<method>

The <method> element is used to specify the methods (and possibly their parameters) of an enterprise bean:

<method>
    <description></description>
    <ejb-name></ejb-name>
    <method-intf></method-intf>
    <method-name></method-name>
    <method-params>
        <method-param></method-param>
    </method-params>
</method>

You can configure a <method> element using any of the following styles:

  • When referring to all the methods of the specified enterprise bean's home and remote interfaces, specify the methods as follows:

    <method>
        <ejb-name>EJBNAME</ejb-name>
        <method-name>*</method-name>
    </method>
    
    
  • When referring to multiple methods with the same overloaded name, specify the methods as follows:

    <method>
        <ejb-name>EJBNAME</ejb-name>
        <method-name>METHOD</method-name>
    </method>
    
    
  • When referring to a single method within a set of methods with an overloaded name, you can specify each parameter within the method as follows:

      <method>
        <ejb-name>EJBNAME</ejb-name>
        <method-name>METHOD</method-name>
        <method-params>
          <method-param>PARAM-1</method-param>
          <method-param>PARAM-2</method-param>
          ...
          <method-param>PARAM-n</method-param>
        </method-params>
      </method>