Run the MDB Sample with Built-In JMS


These steps establish baseline behavior for the sample message-driven bean (MDB) in JMS.

Configure

  1. Ensure that install_dir\bin is in the PATH.
  2. Start the application server.
  3. Change directory to install_dir\samples\ejb\mdb\simple\src, and run the following commands:

Build

asant 

Deploy

asant deploy-jms-resource 
asant deploy 
 

The server log should indicate that the MDB is successfully deployed.

Run

  1. Change directory to install_dir\domains\domain1\server1\applications\j2ee-apps\mdb-simple_1, and run this command:
  2.  
    appclient -client mdb-simpleClient.jar -name SimpleMessageClient 
    -textauth 
     

    The console should display these lines:

    Sending message: This is message 1 Sending message: This is message 2 Sending message: This is message 3

    The server log should display these lines:

    MESSAGE BEAN: Message received: This is message 1 MESSAGE BEAN: Message received: This is message 2 MESSAGE BEAN: Message received: This is message 3

Clean Up

  1. Change directory to install_dir\samples\ejb\mdb\simple\src, and run these commands:
  2.  
    asant clean 
    asant undeploy 
    
  3. Remove the directory: install_dir\domains\domain1\server1\applications\j2ee-apps\mdb-simple_1

TIBCO Enterprise Message Service™ Application Integration Guide
Software Release 4.3, February 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com