Jumping Into JBoss
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:
- Open an MS-DOS Prompt window or Command Prompt windows.
- cd (RotMachine install dir.)
- ant deploy-server
Unix:
- Open a shell.
- cd (RotMachine install dir.)
- ant deploy-server
To test RotMachine using the command-line client:
Windows:
- cd build\bin
- run-client
Unix:
- cd build/bin
- ./run-client.sh
To test RotMachine using the web client:
- Open your browser and go to "http://localhost:8080/rotmachine/index.jsp".
- Enter some text in the form.
- Click the "Go!" button.
Resources
- Example Application - RotMachine
- JBoss
- JBoss 3.0 Quick Start
- JBoss Project Template
- The J2EE Tutorial
- Ant
- XDoclet
Page 3 of 3
This article was originally published on September 3, 2003