March 1, 2021
Hot Topics:

Jumping Into JBoss

  • By Thornton Rose and David Thurmond
  • Send Email »
  • More Articles »

Example Application

To help you further investigate JBoss, an example application called RotMachine is included with this article. See the Resources section below for a link.

RotMachine is a simple J2EE application that includes an EJB (stateless session bean), a web client, and a command-line client. It was built using the JBoss project template, so you will want to get the additional tools listed in the Tools section above.

To install the RotMachine source, unzip the archive file to a directory of your choice.

To build and deploy RotMachine:

  • Windows:

    1. Open an MS-DOS Prompt window or Command Prompt windows.
    2. cd (RotMachine install dir.)
    3. ant deploy-server

  • Unix:

    1. Open a shell.
    2. cd (RotMachine install dir.)
    3. ant deploy-server

To test RotMachine using the command-line client:

  • Windows:

    1. cd build\bin
    2. run-client

  • Unix:

    1. cd build/bin
    2. ./run-client.sh

To test RotMachine using the web client:

  1. Open your browser and go to "http://localhost:8080/rotmachine/index.jsp".
  2. Enter some text in the form.
  3. Click the "Go!" button.


Page 3 of 3

This article was originally published on September 3, 2003

Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

Thanks for your registration, follow us on our social networks to keep up-to-date