Section 7.14. Testing the Credit Check

7.14. Testing the Credit Check

Now that we've deployed the JMS Queue and an MDB to run the credit check, let's test our application to ensure that everything still works properly. Here are the steps for building and deploying the application:

  • Type ant in the root directory of ch07 to build the project.

  • Shut down JBoss so the Ant script can clean up the JBoss deployment area.

  • Type ant colddeploy to deploy the EAR file (jaw.ear) to the $JBOSS_HOME/server/default/deploy directory. Notice that the Ant build script also deploys the jaw-jms-destinations.xml JMS Destination service file to JBoss.

  • Start JBoss back up.

  • Visit http://localhost:8080/jaw in a web browser.

Click on the "Run Credit Check" link on the JAW Motors home page, enter data on the "Run Credit Check" form, and press the "Submit Credit Info" button. You should be routed back to the main page and see the following output on your JBoss console:

 ... 17:05:55,707 INFO  [STDOUT] CreditCheckProcessorBean.onMessage(  ): Received message. 17:05:55,707 INFO  [STDOUT] Credit Check: 17:05:55,707 INFO  [STDOUT] Name = [Fred] 17:05:55,707 INFO  [STDOUT] SSN = [999999999999999] 17:05:55,707 INFO  [STDOUT] Email = [] 17:05:55,707 INFO  [STDOUT] Verifying Credit ... 17:05:59,703 INFO  [STDOUT] Credit Check Result = [Fail Credit Check] 

JBoss at Work. A Practical Guide
JBoss at Work: A Practical Guide
ISBN: 0596007345
EAN: 2147483647
Year: 2004
Pages: 197

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: