Chapter 2. Deploying an Application on JBoss

In the last chapter we focused on getting the application server up and running. Now we will see how to build a simple web application, get it running on the server, and then monitor it. The pattern of build-install-test-monitor is standard in engineering; in this chapter, we’ll see how to do those things in JBoss. The application titled “The Great Albert Einstein Quote Machine” demonstrates the deployment of a web application on JBoss while dispensing interesting quotes.

Getting Ant

Ant is a build tool made with Java in mind, allowing Java developers to have a tool that fits with the Java environment and mentality. It is an expandable, open source tool that is constantly being upgraded and extended to support the latest Java standards. One specific standard that we use in this chapter is the WAR file, which will allow us to package up our application. We’ll learn more about what a WAR file is, and why it’s important, in a little bit.

Note

WAR stands for Web Application Archive.

Ant has an active community of supporters who have helped make Ant the preferred build tool in the Java community (pun intended). With that in mind, we’ve chosen to use Ant for the examples in this book. At the ...

Get JBoss: A Developer's Notebook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.