Oracle8i Enterprise JavaBeans Developer's Guide and Reference Release 3 (8.1.7) Part Number A83725-01 |
|
<!-- This is the XML DTD for the Oracle Specific EJB deployment descriptor --> <!-- The oracle-descriptor element is the root element of the Oracle-specific deployment descriptor. It contains an optional description, optional structural information about logical name mappings, optional definitions for run-as beans and/or methods, and definitions of container-managed persistence. --> <!ELEMENToracle-descriptor
(mappings*, run-as*, persistence-provider*, persistence-descriptor*)> <!-- The mappings section enables you to map logical names defined in the XML deployment descriptor to actual names. Bean logical names are mapped to JNDI names; security logical names are mapped to database roles or users. --> <!ELEMENTmappings
(ejb-mapping*, security-role-mapping*, resource-ref-mapping*, transaction-manager*)> <!-- The ejb-mapping element maps an EJB to its bound JNDI name --> <!ELEMENTejb-mapping
(ejb-name, jndi-name)> <!-- The security-role-mapping element maps security logical names to a database role or user --> <!ELEMENTsecurity-role-mapping
(security-role, oracle-role)> <!-- The resource-ref-mapping element maps any environment variable defined in the XML deployment descriptor to the JNDI name for the target object --> <!ELEMENTresource-ref-mapping
(res-ref-name, jndi-name)> <!-- The transaction manager defines the UserTransaction JNDI name that manages the global transaction. This is only required for transactions that use two-phase commit --> <!ELEMENTtransaction-manager
(description?, jndi-name)> <!-- The jndi-name element specifies a JNDI name for a bound object --> <!ELEMENTjndi-name
(#PCDATA)> <!-- The run-as element enables you to specify a bean or certain methods within a bean to run with an identity other than its own. The modes allowed are CLIENT_IDENTITY (default), SYSTEM_IDENTITY, and SPECIFIED_IDENTITY. With the SPECIFIED_IDENTITY mode, you must provide the identity within the <security-role> element. --> <!ELEMENTrun-as
(description?, mode, security-role, method)> <!-- The mode element specifies the type of <run-as> identity. The values can be one of the following:SYSTEM_IDENTITY, SPECIFIED_IDENTITY, CLIENT_IDENTITY if mode is SPECIFIED_IDENTITY, security-role must be specified if mode is SYSTEM_IDENTITY or CLIENT_IDENTITY and security-role is specified, security-role is ignored --> <!ELEMENTmode
(#PCDATA)> <!-- The security-role element specifies a database role --> <!ELEMENTsecurity-role
(description?, role-name)> <!-- The role-name element specifies a database role or user --> <!ELEMENTrole-name
(#PCDATA)> <!-- The method element defines a method by the bean's logical name, optionally adding the interface name, the method name, and if overloading is present for this method, the parameters of the method you are indicating. --> <!ELEMENTmethod
(description?, ejb-name, method-intf?, method-name, method-params?)> <!-- The ejb-name element defines the logical name for the bean that was used in the XML deployment descriptor --> <!ELEMENTejb-name
(#PCDATA)> <!--The method interface defines where the method is specified--> <!ELEMENTmethod-intf
(#PCDATA)> <!-- The method name element takes in the actual name of a method defined. --> <!ELEMENTmethod-name
(#PCDATA)> <!-- The method-params element specifies one or more parameters for a method. --> <!ELEMENTmethod-params
(method-param*)> <!-- The method-param defines a single parameter for a method by its class type--> <!ELEMENTmethod-param
(#PCDATA)> <!-- The oracle-role element specifies a database role or user --> <!ELEMENToracle-role
(#PCDATA)> <!-- The ejb-ref-name is the logical name for the EJB reference specified in the XML deployment descriptor --> <!ELEMENTejb-ref-name
(#PCDATA)> <!-- The res-ref-name element is the logical name for the resource reference specified in the XML deployment descriptor --> <!ELEMENTres-ref-name
(#PCDATA)> <!--- persistence-provider describes the container managed persistence --> <!-- The persistence-provider element specifies the CMP provider that you are using. At this time, only Oracle8i's PSI-RI is supported. --> <!ELEMENTpersistence-provider
(description?, persistence-name, persistence-deployer)> <!ELEMENTdescription
(#PCDATA)> <!-- The persistence-name element defines the name of the provider. For Oracle8i, this should be psi-ri --> <!ELEMENTpersistence-name
(#PCDATA)> <!-- The persistence-deployer is the class of the CMP provider. This should be oracle.aurora.ejb.persistence.ocmp.OcmpEntityDeployer. --> <!ELEMENTpersistence-deployer
(#PCDATA)> <!-- The persistence-descriptor element defines the persistence fields in the bean that must be managed by the CMP provider --> <!ELEMENTpersistence-descriptor
(description?, ejb-name, persistence-name, persistence-param*, psi-ri*)> <!ELEMENTpersistence-param
(#PCDATA)> <!-- The psi-ri element defines how the persistence fields int he beans are mapped to database tables and columns. --> <!ELEMENTpsi-ri
(schema, table, attr-mapping+, serialize-mapping?)> <!-- The schema element specifies the schema where the table exists --> <!ELEMENTschema
(#PCDATA)> <!-- The table element specifies the table where to store the persistent fields --> <!ELEMENTtable
(#PCDATA)> <!-- The attr-mapping element specifies how each persistent field is mapped to a corresponding column in the table --> <!ELEMENTattr-mapping
(field-name, column-name)> <!-- If you serialize all persistent fields into a single column, use the serialize-mapping element --> <!ELEMENTserialize-mapping
(field-name+, column-name)> <!-- The field-name element specifies the persistent variable in the bean --> <!ELEMENTfield-name
(#PCDATA)> <!-- The column-name element specifies the column for a single persistent field --> <!ELEMENTcolumn-name
(#PCDATA)>
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|