Getting Set with J2EE, conclusion
(Page 1 of 4 )
This article, the second of two parts, will take you through writing a simple application with J2EE 1.4 SDK. It is excerpted from chapter two of the book
Beginning J2EE 1.4 From Novice to Professional, written by James L. Weaver, Kevin Mukhar, and Jim Crume (Apress, 2005; ISBN: 1590593413).
Compiling and Deploying Hello J2EE World
As a final test, we're going to walk through the process of creating and deploying a JavaServer page. This is going to make certain that the J2EE server is working properly first, and give you your first taste of building, deploying, and testing a J2EE application.
This will consist of the following steps:
- Create a working directory. This will give us a sandbox for creating the application files and editing them.
- Create a text file for the JavaServer Page. This will be a text file of HTML with snippets of Java code, which will be compiled by the J2EE server into a servlet.
- Using the Deployment Tool utility, select the components for the application and package them up into a Web Archive. The Web Archive is a jar file that bundles all of the application components into a single file for easy deployment.
- Verify the contents of the Web Archive. The Deployment Tool has a utility that will test the contents of the Web Archive before it's distributed to catch problems beforehand.
- Distribute the Web Archive to the J2EE server. Once this is done, the application is available and ready to be run.
- Test the application.
So, lets get started!
Next: Try it Out: Hello J2EE World >>
More Java Articles
More By Apress Publishing
|
This article is excerpted from chapter two of the book Beginning J2EE 1.4 From Novice to Professional, written by James L. Weaver, Kevin Mukhar, and Jim Crume (Apress, 2005; ISBN: 1590593413). Check it out at your favorite bookstore today. Buy this book now.
|
|