...
Step-by-step migration
When you built the Session Bean sample application, Maven packaged the deployment descriptors for both JBoss (jboss.xml) and Geronimo (openejb-jar.xml) as they were already provided by the sample application. These files are located in the <session_home>/dd/META-INF directory.
The following example shows the JBoss deployment descriptor.
Code Block |
---|
| xml |
---|
| xml |
---|
borderStyle | solid |
---|
title | jboss.xml |
---|
|
<?xml version="1.0"?>
<jboss>
<container-configurations>
<container-configuration>
<container-name>Standard BMP EntityBean</container-name>
<commit-option>A</commit-option>
</container-configuration>
</container-configurations>
<enterprise-beans>
<entity>
<ejb-name>CustomerEJB</ejb-name>
<jndi-name>CustomerHomeRemote</jndi-name>
<resource-ref>
<res-ref-name>jdbc/ibm-demo</res-ref-name>
<jndi-name>java:/DefaultDS</jndi-name>
</resource-ref>
<configuration-name>Standard BMP EntityBean</configuration-name>
</entity>
<session>
<ejb-name>LoanManagerEJB</ejb-name>
<jndi-name>LoanManagerHomeRemote</jndi-name>
<ejb-ref>
<ejb-ref-name>ejb/CustomerHomeRemote</ejb-ref-name>
<jndi-name>CustomerHomeRemote</jndi-name>
</ejb-ref>
</session>
<session>
<ejb-name>StatefulLoanManagerEJB</ejb-name>
<jndi-name>StatefulLoanManagerHomeRemote</jndi-name>
<ejb-ref>
<ejb-ref-name>ejb/CustomerHomeRemote</ejb-ref-name>
<jndi-name>CustomerHomeRemote</jndi-name>
</ejb-ref>
</session>
</enterprise-beans>
</jboss> |
Compare it with the contents of the Geronimo deployment plan shown in the following example.
Code Block |
---|
| xml |
---|
| xml |
---|
borderStyle | solid |
---|
title | openejb-jar.xml |
---|
|
<openejb-jar
xmlns="http://www.openejb.org/xml/ns/openejb-jar"
xmlns:naming="http://geronimo.apache.org/xml/ns/naming"
xmlns:security="http://geronimo.apache.org/xml/ns/security"
xmlns:sys="http://geronimo.apache.org/xml/ns/deployment"
configId="SessionBeanDemo" parentId="org/apache/geronimo/Server">
<enterprise-beans>
<entity>
<ejb-name>CustomerEJB</ejb-name>
<jndi-name>CustomerHomeRemote</jndi-name>
<local-jndi-name></local-jndi-name>
<resource-ref>
<ref-name>jdbc/ibm-demo</ref-name>
<resource-link>SystemDatasource</resource-link>
</resource-ref>
</entity>
<session>
<ejb-name>LoanManagerEJB</ejb-name>
<jndi-name>LoanManagerHomeRemote</jndi-name>
<ejb-ref>
<ref-name>ejb/CustomerHomeRemote</ref-name>
<ejb-link>CustomerEJB</ejb-link>
</ejb-ref>
</session>
<session>
<ejb-name>StatefulLoanManagerEJB</ejb-name>
<jndi-name>StatefulLoanManagerHomeRemote</jndi-name>
<ejb-ref>
<ref-name>ejb/CustomerHomeRemote</ref-name>
<ejb-link>CustomerEJB</ejb-link>
</ejb-ref>
</session>
</enterprise-beans>
</openejb-jar> |
Back to Top
Summary
...