![Red Hat Application Server Скачать руководство пользователя страница 137](http://html.mh-extra.com/html/red-hat/application-server/application-server_manual_1427406137.webp)
Chapter 10.
Defining the Deployment Descriptor
This chapter is for the Enterprise Bean provider; that is, the person in charge of developing the soft-
ware components on the server side.
10.1. Principles
The bean programmer is responsible for providing the deployment descriptor associated with
the developed Enterprise Beans. The Bean Provider’s responsibilities and the Application
Assembler’s responsibilities are to provide an XML deployment descriptor that conforms to the
deployment descriptor’s XML schema as defined in the EBJ specification version 2.0. (Refer to
$JONAS_ROOT/xml/ejb-jar_2_1.xsd
or http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd).
To deploy Enterprise JavaBeans on the EJB server, information not defined in the standard XML
deployment descriptor may be needed. For example, this information may include the mapping of
the bean to the underlying database for an Entity Bean with container-managed persistence. This
information is specified during the deployment step in another XML deployment descriptor that
is specific to JOnAS. The JOnAS-specific deployment descriptor’s XML schema is located in
$JONAS_ROOT/xml/jonas-ejb-jar_X_Y.xsd
. The file name of the JOnAS-specific XML
deployment descriptor must be the file name of the standard XML deployment descriptor prefixed by
“
jonas-
”.
The parser gets the specified schema via the classpath (schemas are packaged in the
$JONAS_ROOT/lib/common/ow_jonas.jar
file).
The standard deployment descriptor should include the following structural information for each En-
terprise Bean:
•
The Enterprise Bean’s name
•
The Enterprise Bean’s class
•
The Enterprise Bean’s home interface
•
The Enterprise Bean’s remote interface
•
The Enterprise Bean’s type
•
A re-entrancy indication for the Entity Bean
•
The Session Bean’s state management type
•
The Session Bean’s transaction demarcation type
•
The Entity Bean’s persistence management
•
The Entity Bean’s primary key class
•
Container-managed fields
•
Environment entries
•
The bean’s EJB references
•
Resource manager connection factory references
•
Transaction attributes.
The JOnAS-specific deployment descriptor contains information for each Enterprise Bean including:
•
The JNDI name of the Home object that implement the Home interface of the Enterprise Bean
•
The JNDI name of the DataSource object corresponding to the resource manager connection factory
referenced in the Enterprise Bean’s class
•
The JNDI name of each EJB references
•
The JNDI name of JMS administered objects
Содержание Application Server
Страница 1: ...Red Hat Application Server JOnAS User Guide ...
Страница 8: ......
Страница 22: ...14 Chapter 1 Java Open Application Server JOnAS a J2EE Platform ...
Страница 58: ...50 Chapter 3 JOnAS Configuration ...
Страница 66: ...58 Chapter 5 JOnAS Class Loader Hierarchy ...
Страница 78: ...70 Chapter 6 JOnAS Command Reference ...
Страница 80: ......
Страница 86: ...78 Chapter 7 Developing Session Beans ...
Страница 136: ...128 Chapter 9 Developing Message Driven Beans ...
Страница 142: ...134 Chapter 10 Defining the Deployment Descriptor ...
Страница 148: ...140 Chapter 11 Transactional Behavior of EJB Applications ...
Страница 158: ...150 Chapter 14 EJB Packaging ...
Страница 162: ...154 Chapter 15 Application Deployment and Installation Guide ...
Страница 164: ......
Страница 176: ...168 Chapter 18 WAR Packaging ...
Страница 178: ......
Страница 184: ...176 Chapter 20 Defining the Client Deployment Descriptor ...
Страница 186: ...178 Chapter 21 Client Packaging ...
Страница 188: ......
Страница 192: ...184 Chapter 23 EAR Packaging ...
Страница 194: ......
Страница 200: ...192 Chapter 24 JOnAS Services ...
Страница 204: ...196 Chapter 25 JOnAS and the Connector Architecture ...
Страница 222: ...214 Chapter 27 Ant EJB Tasks Using EJB JAR ...
Страница 234: ...226 Chapter 29 Web Services with JOnAS ...
Страница 236: ......
Страница 260: ...252 Chapter 34 How to use Axis in JOnAS ...
Страница 270: ...262 Chapter 36 Web Service Interoperability between JOnAS and BEA WebLogic ...
Страница 296: ......