Versions Compared

Key

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

...

Sample application
Anchor
sampleApp
sampleApp

This sample application shows how session beans are used and deployed in a container. There are two clients, one for stateless session beans and another for stateful session beans. Both client applications use the same database which contains a table that stores loan application details. An entity bean is used to connect to and operate on the loan details table. A session bean is then used by the client application to get specific details from the database using the entity bean. The first client creates a stateless session bean and displays a list of denied loan applications via a method defined in that EJB. The second client creates a stateful session bean and adds loan applications to the database.

...

http://maven.apache.org

Back to Top

Build the sample application

In order to build the Session Bean application a Maven 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 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>

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

maven

Back to Top

The Geronimo environment
Anchor
Geronimo
Geronimo

...