Oracle Application Server 10g: J2EE Deployment and Administration

About orion-ejb-jar .xml

Some very simple EJB applications can be deployed without any special configuration beyond their standard ejb-jar.xml descriptors. However, in most cases, you'll need to map JNDI locations, resource references, EJB references, security settings, and so on in orion-ejb-jar.xml , which is packaged in META-INF/ along with ejb-jar.xml .

This server-specific descriptor does the following:

The document type declaration (DTD) used for the orion-ejb-jar.xml deployment descriptor can be found on Oracle's website at http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd . The deployment descriptor should always start with a header like this:

<?xml version = '1.0' encoding = 'windows-1252'?> <!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">

The overall structure of the deployment descriptor as defined by this DTD is shown in Figure 11-1.

Figure 11-1: XML-SPY diagram

Overall Structure

The root element <orion-ejb-jar> has two attributes (used internally by the server) and two subelements: one for EJB deployments ( enterprise-beans ), and one for security role mapping ( assembly-descriptor ). The elements are listed in Table 11-1.

Table 11-1: /orion-ejb-jar Elements

Parameter

Description

orion-ejb-jar:deployment-time

Used by server, do not edit.

orion-ejb-jar:deployment-version

Used by server, do not edit.

enterprise-besans

Configures EJBs declared in ejb-jar.xml .

assembly-descriptor

Resolves security settings declared in ejb-jar.xml .

Категории