Packaging and Deploying the Enterprise Bean

The following shows the directory structure for the EnrollmentCart bean files and client for WebLogic Server:

C:styejb
         examples
              day06
                   EnrollmentCart.java
                   EnrollmentCartHome.java
                   EnrollmentCartEJB.java
                   ejb-jar.xml
                   weblogic-ejb-jar.xml
                   Client.java

For JBoss, replace the vendor-specific weblogic-ejb-jar.xml file with jboss.xml.

For JBoss, replace the vendor-specific weblogic-ejb-jar.xml file with jboss.xml.

To package and deploy the EnrollmentCart session bean for WebLogic Server, run the following commands:

C:>cd styejbexamples
C:styejbexamples>setEnvWebLogic.bat
C:styejbexamples>cd day06
C:styejbexamplesday06>buildWebLogic.bat
					

You can run the script by entering the following commands:

C:>cd styejbexamples
C:styejbexamples>setEnvWebLogic.bat
C:styejbexamples>cd day06
C:styejbexamplesday06>buildWebLogic.bat
					

The corresponding script for JBoss is buildJBoss.bat. Here are the steps to run the commands:

C:>cd styejbexamples
C:styejbexamples>setEnvJBoss.bat
C:styejbexamples>cd day06
C:styejbexamplesday06>buildJBoss.bat
					

To deploy the EnrollmentCart bean, we used the hot deployment feature of both WebLogic (version 6.1 and higher) and JBoss (version 2.4 and higher). Deployment is performed simply by copying the bean's JAR file into the application deployment directory.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.30.62