Basic Deployment Process

EJBs can be deployed in OC4J using the processes described in Chapter 9.

As a quick review, you'll need to do the following:

  1. Develop and compile the beans.

  2. Create the standard EJB deployment descriptor ( ejb-jar.xml ).

  3. Create the server-specific orion-ejb-jar .xml (optional in some simple cases) to map Java Naming and Directory Interface (JNDI) locations, resource references, and so on.

  4. Optionally package the application into an enterprise archive (EAR) file.

  5. Configure any resources the EJBs will need to access. This may include setting up data sources in data-sources.xml , configuring security, creating JMS destinations for the message-driven beans, creating database tables for entity bean persistence, and so on.

  6. Create an entry in server.xml pointing to the application (whether to an EAR or an exploded directory structure). Optionally, you can use admin.jar or the Application Server Control (ASC) website to deploy the application instead of manually updating server.xml (see Chapters 9 and 18).

Once deployed, you should be able to test the EJBs from web applications (see Chapter 10) or application clients (see Chapter 13).



Oracle Application Server 10g. J2EE Deployment and Administration
Oracle Application Server 10g: J2EE Deployment and Administration
ISBN: 1590592352
EAN: 2147483647
Year: 2004
Pages: 150

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