Versions Compared

Key

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

...

http://maven.apache.org

Back to Top

Download the sample application

Download the Session Bean sample application from the following URL:

http://opensource2.atlassian.com/confluence/oss/download/attachments/1155/session.zip

After extracting the zip file, a session directory will be created. From now on, this directory will be referred as <session_home>.

Back to Top

Set the JNDI properties

Open the jndi.properties file located in the <session_home>/jndi directory. Make sure that every property under the JBoss Settings section are uncommented and every property under the Geronimo Settings are commented out.

...

In order to build the Session Bean sample application a Maven build script has been provided. Download the Session Bean sample application from the following URL:

http://opensource2.atlassian.com/confluence/oss/download/attachments/1155/session.zip

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

...

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

maven ejb war

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.

...