Example Of Session Descriptors - Red Hat APPLICATION SERVER - JONAS Manual

Jonas
Hide thumbs Also See for APPLICATION SERVER - JONAS:
Table of Contents

Advertisement

130
Information for the mapping of the bean to the underlying database, if it is an entity with container-
managed persistence.

10.2. Example of Session Descriptors

?xml version="1.0" encoding="ISO-8859-1"?
ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
version="2.1"
description Here is the description of the test's beans /description
enterprise-beans
session
description ... Bean example one ... /description
display-name Bean example one /display-name
ejb-name ExampleOne /ejb-name
home tests.Ex1Home /home
remote tests.Ex1 /remote
ejb-class tests.Ex1Bean /ejb-class
session-type Stateful /session-type
transaction-type Container /transaction-type
env-entry
env-entry-name name1 /env-entry-name
env-entry-type java.lang.String /env-entry-type
env-entry-value value1 /env-entry-value
/env-entry
ejb-ref
ejb-ref-name ejb/ses1 /ejb-ref-name
ejb-ref-type session /ejb-ref-type
home tests.SS1Home /home
remote tests.SS1 /remote
/ejb-ref
resource-ref
res-ref-name jdbc/mydb /res-ref-name
res-type javax.sql.DataSource /res-type
res-auth Application /res-auth
/resource-ref
/session
/enterprise-beans
assembly-descriptor
container-transaction
method
ejb-name ExampleOne /ejb-name
method-name * /method-name
/method
trans-attribute Required /trans-attribute
/container-transaction
container-transaction
method
ejb-name ExampleOne /ejb-name
method-inter Home /ejb-name
method-name * /method-name
/method
trans-attribute Supports /trans-attribute
/container-transaction
container-transaction
method
ejb-name ExampleOne /ejb-name
method-name methodOne /method-name
Chapter 10. Defining the Deployment Descriptor

Advertisement

Table of Contents
loading

This manual is also suitable for:

Application server

Table of Contents