Chapter 14: Packaging and Application Deployment

Overview

In this chapter we'll look at packaging J2EE applications and deploying them onto application servers. This is an area in which we require server-specific knowledge, and in which portability between application servers is presently limited.

As application servers use different approaches to class loading, we may need to package applications differently for different application servers. Even standard deployment units such as EARs may not be wholly portable. We'll also need to follow server-specific conventions to define resources such as JDBC DataSources, which applications require. As we'll see, the standard J2EE deployment descriptors do not provide all necessary information, meaning that we normally require additional, proprietary, deployment descriptors. Although the J2EE specifications describe the structure of standard deployment units, no standard deployment process is (as yet) mandated.

As the details of application deployment differ between application servers, I'll aim to provide an introduction here, highlighting areas in which you'll need to research the behavior of your target server. After working through this chapter, you should have a feel for the commonality between application deployment on different servers, and the steps necessary to package and deploy a typical J2EE application on any server.

We'll illustrate the concepts discussed by looking at what we need to do to get the sample application running in JBoss 3.0. Please check the download accompanying this book for information on deploying the sample application to other servers.

Deployment options can have an important impact on performance, so it's vital to explore them throughout the application lifecycle, not merely get your application running on your chosen server.



Expert One-on-One J2EE Design and Development
Microsoft Office PowerPoint 2007 On Demand
ISBN: B0085SG5O4
EAN: 2147483647
Year: 2005
Pages: 183

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net