Versions Compared

Key

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

...

Code Block
xml
xml
borderStylesolid
titleJBoss deployment descriptor - jboss.xml
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
    <ejb-ref>
        <ejb-ref-name>ejb/CustomerHome</ejb-ref-name>
        <jndi-name>CustomerHomeRemote</jndi-name>
    </ejb-ref>
</jboss-web>

Back to Top

Deploy the sample application

To deploy the Loan CMP application in JBoss, copy the entity-ejb-cmp.jar and entity-ejb.war files you just built with Maven to the following directory:

<jboss_home>\server\<your_server_name>\deploy

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

Back to Top

Test the sample application

To test the sample client application type the following command from the <bmp_home> directory:

maven run:client

When you run this command, you will receive a list of all the loans that were retireved from the database, you should see a screen similar to the one shown in the following example:

No Format
bgColor#000000
borderStylesolid

E:\loan-cmp>maven run:client
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

build:start:

run:client:
    [java] creating home...
    [java] creating customer...
    [java] INSERTING RECORD :1, Customer 1, 11/11/11,  2323232 , NO INFO,  0.0 , 0.0
    [java] DONE WITH THE INSERT
    [java] done.findByPrimaryKeyTest... 1
    [java] customer name: Customer 1
    [java] customer sss no: 2323232
    [java] customer loan amount: 0.0
    [java] customer annual salary: 0.0
    [java] customer birthdate: Fri Nov 11 00:00:00 EST 2011
    [java] updating ejb...
    [java] done.findBySssNoTest... 2323232
    [java] customer name: Customer 2
    [java] customer sss no: 2323232
    [java] customer loan amount: 0.0
    [java] customer annual salary: 0.0
    [java] customer birthdate: Fri Nov 11 00:00:00 EST 2011
BUILD SUCCESSFUL
Total time: 4 seconds
Finished at: Thu Nov 10 13:32:33 EST 2005

E:\loan-cmp>

Back to Top

The Geronimo environment
Anchor
Geronimo
Geronimo

...