3.3.2 Mapping with DD

The following table describes the correspondence between the HITACHI EJB-JAR Property file and the Deployment Descriptor.

Organization of this subsection
(1) In EJB 2.0
(2) In EJB 2.1
(3) In EJB 3.0
(4) In EJB 3.1

(1) In EJB 2.0

HITACHI EJB-JAR property fileDeployment Descriptor
Tag nameOccurrence patternTag nameOccurrence pattern
<hitachi-ejb-jar-property>Once<ejb-jar>Once

<description>Zero or once

<description>Zero or once

<display-name>Zero or once

<display-name>Zero or once

<icon>Zero or once

----

<small-icon>Zero or once

<small-icon>Zero or once

<large-icon>Zero or once

<large-icon>Zero or once

----

<enterprise-beans>Once

----

(Omitted)--

<relationships>Zero or once

<relationships>Zero or once

<description>Zero or once

<description>Zero or once

<ejb-relation>One or more times

<ejb-relation>One or more times

<description>Zero or once

<description>Zero or once

<ejb-relation-name>Zero or once

<ejb-relation-name>Zero or once

<ejb1>Once

<ejb-relationship-role>Once

<description>Zero or once

<description>Zero or once

<ejb-relationship-role-name>Zero or once

<ejb-relationship-role-name>Zero or once

<multiplicity>Once

<multiplicity>Once

<cascade-delete>Zero or once

<cascade-delete>Zero or once

----

<relationship-role-source>Once

----

<description>Zero or more times

<ejb-name>Once

<ejb-name>Once

----

<cmr-field>Zero or once

----

<description>Zero or more times

<cmr-field-name>Once

<cmr-field-name>Once

<cmr-field-type>Zero or once

<cmr-field-type>Zero or once

<ejb2>Once

<ejb-relationship-role>Once

<description>Zero or once

<description>Zero or once

<ejb-relationship-role-name>Zero or once

<ejb-relationship-role-name>Zero or once

<multiplicity>Once

<multiplicity>Once

<cascade-delete>Zero or once

<cascade-delete>Zero or once

----

<relationship-role-source>Once

----

<description>Zero or more times

<ejb-name>Once

<ejb-name>Once

----

<cmr-field>Zero or once

----

<description>Zero or more times

<cmr-field-name>Once

<cmr-field-name>Once

<cmr-field-type>Zero or once

<cmr-field-type>Zero or once

----

<assembly-descriptor>Zero or once

<security-role>Zero or more times

<security-role>Zero or more times

<description>Zero or more times

<description>Zero or more times

<role-name>Once

<role-name>Once

<linked-to>Zero or once

----

----

(Omitted)--

<ejb-client-jar>Zero or once

<ejb-client-jar>Zero or once
Legend:
--: No corresponding tag. Alternatively, the description of the occurrence pattern is omitted because the corresponding tag does not exist or the tag is omitted.
(Omitted): The tag is omitted.

(2) In EJB 2.1

HITACHI EJB-JAR property fileDeployment Descriptor
Tag nameOccurrence patternTag nameOccurrence pattern
<hitachi-ejb-jar-property>Once<ejb-jar>Once

<description>Zero or more times

<description>Zero or more times

<display-name>One or more times

<display-name>Zero or more times

<icon>Zero or more times

<icon>Zero or more times

<small-icon>Zero or once

<small-icon>Zero or once

<large-icon>Zero or once

<large-icon>Zero or once

----

<enterprise-beans>Once

----

(Omitted)--

<relationships>Zero or once

<relationships>Zero or once

<description>Zero or more times

<description>Zero or more times

<ejb-relation>One or more times

<ejb-relation>One or more times

<description>Zero or more times

<description>Zero or more times

<ejb-relation-name>Zero or once

<ejb-relation-name>Zero or once

<ejb1>Once

<ejb-relationship-role>Once

<description>Zero or more times

<description>Zero or more times

<ejb-relationship-role-name>Zero or once

<ejb-relationship-role-name>Zero or once

<multiplicity>Once

<multiplicity>Once

<cascade-delete>Zero or once

<cascade-delete>Zero or once

----

<relationship-role-source>Once

----

<description>Zero or more times

<ejb-name>Once

<ejb-name>Once

----

<cmr-field>Zero or once

----

<description>Zero or more times

<cmr-field-name>Once

<cmr-field-name>Once

<cmr-field-type>Zero or once

<cmr-field-type>Zero or once

<ejb2>Once

<ejb-relationship-role>Once

<description>Zero or more times

<description>Zero or more times

<ejb-relationship-role-name>Zero or once

<ejb-relationship-role-name>Zero or once

<multiplicity>Once

<multiplicity>Once

<cascade-delete>Zero or once

<cascade-delete>Zero or once

----

<relationship-role-source>Once

----

<description>Zero or more times

<ejb-name>Once

<ejb-name>Once

----

<cmr-field>Zero or once

----

<description>Zero or more times

<cmr-field-name>Once

<cmr-field-name>Once

<cmr-field-type>Zero or once

<cmr-field-type>Zero or once

----

<assembly-descriptor>Zero or once

<security-role>Zero or more times

<security-role>Zero or more times

<description>Zero or more times

<description>Zero or more times

<role-name>Once

<role-name>Once

<linked-to>Zero or once

----

----

(Omitted)--

<ejb-client-jar>Zero or once

<ejb-client-jar>Zero or once
Legend:
--: No corresponding tag. Alternatively, the description of the occurrence pattern is omitted because the corresponding tag does not exist or the tag is omitted.
(Omitted): The tag is omitted.

(3) In EJB 3.0

HITACHI EJB-JAR property fileDeployment Descriptor
Tag nameOccurrence patternTag nameOccurrence pattern
<hitachi-ejb-jar-property>Once<ejb-jar>Once

<description>Zero or more times

----

<display-name>One or more times

<display-name>--

<icon>Zero or more times

----

<small-icon>Zero or once

----

<large-icon>Zero or once

----

----

<enterprise-beans>Once

----

(Omitted)--

<interceptors>Zero or once

----

<description>Zero or more times

----

<interceptor>One or more times

----

Zero or more times

----

Once

----

Zero or more times

----

<class>Zero or once

----

<method-name>Once

----

<post-construct>Zero or more times

----

<lifecycle-callback-class>Zero or once

----

<lifecycle-callback-method>Once

----

<pre-destroy>Zero or more times

----

<lifecycle-callback-class>Zero or once

----

<lifecycle-callback-method>Once

----

<post-activate>Zero or more times

----

<lifecycle-callback-class>Zero or once

----

<lifecycle-callback-method>Once

----

<pre-passivate>Zero or more times

----

<lifecycle-callback-class>Zero or once

----

<lifecycle-callback-method>Once

----

----

<assembly-descriptor>Zero or once

<interceptor-binding>Zero or more times

<interceptor-binding>Zero or more times

<description>Zero or more times

<description>Zero or more times

<ejb-name>Once

<ejb-name>Once

<interceptor-class>#Zero or more times

<interceptor-class>#One or more times

<interceptor-order>#Once

<interceptor-order>Once

<interceptor-class>One or more times

<interceptor-class>One or more times

<exclude-default-interceptors>Zero or once

<exclude-default-interceptors>Zero or once

<exclude-class-interceptors>Zero or once

<exclude-class-interceptors>Zero or once

<named-method>Zero or once

<named-method>Zero or once

<method-name>Once

<method-name>Once

<method-params>Zero or once

<method-params>Zero or once

<method-param>Zero or more times

<method-param>Zero or more times

<application-exception>Zero or more times

<application-exception>Zero or more times

<exception-class>Once

<exception-class>Once

<rollback>Zero or once

<rollback>Zero or once

----

(Omitted)--

<ejb-client-jar>Zero or once

<ejb-client-jar>Zero or once

--

--

--

--
Legend:
--: No corresponding tag. Alternatively, the description of the occurrence pattern is omitted because the corresponding tag does not exist or the tag is omitted.
(Omitted): The tag is omitted.
#
Specify either <interceptor-class> or <interceptor-order>.

(4) In EJB 3.1

HITACHI EJB-JAR property fileDeployment Descriptor
Tag nameOccurrence patternTag nameOccurrence pattern
<hitachi-ejb-jar-property>Once<ejb-jar>Once

<description>Zero or more times

----

<display-name>One or more times

<display-name>--

<icon>Zero or more times

----

<small-icon>Zero or once

----

<large-icon>Zero or once

----

----

<enterprise-beans>Once

----

(Omitted)--

<interceptors>Zero or once

----

<description>Zero or more times

----

<interceptor>One or more times

----

<description>Zero or more times

----

<interceptor-class>Once

----

<around-invoke>Zero or more times

----

<class>Zero or once

----

<method-name>Once

----

<post-construct>Zero or more times

----

<lifecycle-callback-class>Zero or once

----

<lifecycle-callback-method>Once

----

<pre-destroy>Zero or more times

----

<lifecycle-callback-class>Zero or once

----

<lifecycle-callback-method>Once

----

<post-activate>Zero or more times

----

<lifecycle-callback-class>Zero or once

----

<lifecycle-callback-method>Once

----

<pre-passivate>Zero or more times

----

<lifecycle-callback-class>Zero or once

----

<lifecycle-callback-method>Once

----

----

<assembly-descriptor>Zero or once

<interceptor-binding>Zero or more times

<interceptor-binding>Zero or more times

<description>Zero or more times

<description>Zero or more times

<ejb-name>Once

<ejb-name>Once

<interceptor-class>#Zero or more times

<interceptor-class>#One or more times

<interceptor-order>#Once

<interceptor-order>Once

<interceptor-class>One or more times

<interceptor-class>One or more times

<exclude-default-interceptors>Zero or once

<exclude-default-interceptors>Zero or once

<exclude-class-interceptors>Zero or once

<exclude-class-interceptors>Zero or once

<named-method>Zero or once

<named-method>Zero or once

<method-name>Once

<method-name>Once

<method-params>Zero or once

<method-params>Zero or once

<method-param>Zero or more times

<method-param>Zero or more times

<application-exception>Zero or more times

<application-exception>Zero or more times

<exception-class>Once

<exception-class>Once

<rollback>Zero or once

<rollback>Zero or once

<inherited>Zero or once

<inherited>Zero or once

----

(Omitted)--

<ejb-client-jar>Zero or once

<ejb-client-jar>Zero or once

--

--

--

--
Legend:
--: No corresponding tag. Alternatively, the description of the occurrence pattern is omitted because the corresponding tag does not exist or the tag is omitted.
(Omitted): The tag is omitted.
#
Specify either <interceptor-class> or <interceptor-order>.