Saturday, May 21, 2011

Deploying an EJB Application

Deploying an EJB Application


WebSphere Deployment Process

In order to deploy this as an EJB application, you need to go through a server-specific deployment process that configures the application to run on a given server. As an example, we'll show you how to deploy this EAR file into WebSphere Application Server. However, the sample code is pure J2EE and so will deploy in any EJB2.0 server.

The process followed in this book is simple; we use command-line tools and the Web console. However, as of this version of WebSphere, a new tool called the Application Server Toolkit (ASTK) is available, which makes the procedure considerably easier.

If you have a different J2EE application server, then follow the guidelines appropriate to that server. The deployment options should be standard and easily managed. For more information, you may wish to see the settings that were configured in WebSphere to deploy the application.


A Simple View of the Deployment Process - The next stages may seem complicated, so here's a heads-up of what we're about to do. You can think of this process as wiring everything together:

1. Create a database.

2. Wire that to your application server.

3. Wire the entity bean to the database.

4. Wire the session bean to the entity bean.

5. Switch to Axis and create a WSDL file.

6. Wire the Axis service to the session bean.

Once you've completed these steps, everything should work!

No comments:

Post a Comment