Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

After extracting the zip file, a session directory will be created. From now on, this directory will be referred as <session_home>. In that directory open the project.properties file. Edit the maven.jboss.home property to match your JBoss environment.

No Format
borderStylesolid
titlebuild.properties
maven.ejb.includes=com/ibm/demo/entity/**, com/ibm/demo/session/**
maven.ejb.excludes=com/ibm/demo/client/**
maven.ejb.src=dd

maven.jboss.home=<jboss_home>
maven.geronimo.home=<geronimo_home>
Note

This sample application requires some jars provided by Geronimo, if you do not have Geronimo installed refer to The Geronimo environment section for installation guidance

From a command prompt or shell go to the <bmp_home> directory and run the following command:

maven

This will compile the source files and package the EJB jar file. You can see the results in the <session_home>/target directory. The following list shows the dependency jars needed in building and running the Session Bean sample application.

  • geronimo-spec-ejb-2.1-rc4.jar - the EJB spec; needed for compiling source.
  • openejb-core-2.0-G1M5.jar - needed by Geronimo during runtime.
  • geronimo-spec-j2ee-1.4-rc4.jar - needed by Geronimo during runtime.
  • geronimo-security-1.0-M5.jar - needed by Geronimo during runtime.
Note

Note that JBoss doesn't need the last three jars to run the application.

Back to Top

Deploy the sample application

To deploy the Session Bean sample application you just built with Maven, copy the session-ejb-SNAPSHOT.jar file from the <session_home>/target directory to the following directory:

<jboss_home>\server\<your_server_name>\deploy

If JBoss is already started, it will automatically deploy and start the applications; otherwise, the applications will be deployed and started at the next startup.

Back to Top

Test the sample application

Back to Top

The Geronimo environment
Anchor
Geronimo
Geronimo

...