Red Hat Application Server: JOnAS User Guide | ||
---|---|---|
Prev | Chapter 40. How To Configure and Use xdoclet for JOnAS | Next |
The jonas.bean element declares the JOnAS-specific information for an enterprise bean.
Parameter | Type | Applicability | Description | Mandatory |
---|---|---|---|---|
ejb-name | text | The enterprise bean's name specified in the standard EJB deployment descriptor. | true | |
jndi-name | text | The JNDI name of the enterprise bean's home. Concerns only the Entity and Session beans. Mandatory if version < 2.5, but optional for Session beans for 2.5 onwards. | false | |
cleanup | text | Determines the jonas-specific behavior for table management at deploy time. | false | |
lock-policy | text | Determine the jonas-specific lock policy for database access. | false | |
automatic-pk-field-name | text | The jdbc column name for automatic primary key; auto-generated. | false | |
inactivity-timeout | text | Optional inactivity-timeout value (integer value) | false | |
prefetch | text | Optional prefetch (boolean value) | false |
The jonas.resource element declares the JOnAS-specific information for an external resource referenced by a bean.
The jonas.resource-env element declares the JOnAS-specific information for an external resource environment referenced by a bean.
The jonas.ejb-ref element declares the JOnAS-specific information for a reference to another enterprise bean's home.
The jonas.ejb-ref element specifies the value of timeout in seconds for expiration of session instances.
The jonas.is-modified-method-name element specifies the name of the is-modified method of an entity.
The jonas.shared element specifies whether the bean state can be accessed outside JOnAS. This tag was introduced in version 2.4.
The jonas.passivation-timeout element specifies the value of timeout in seconds for passivation of entity instances when no transaction are used.
The jonas.max-cache-size element defines the max number of instances (int value) that can be held in memory. The default value is infinite. This tag was introduced in version 2.4.
The jonas.min-pool-size element specifies the number of instances that will be created to populate the pool when the bean is loaded for the first time. The default value is 0. This tag was introduced in version 2.4.
The jonas.jdbc-mapping element declares the mapping of an entity with container-managed persistence to the underlying database.
The jonas.ejb-relation element declares the CMR fields Mapping to primary-key-fields to the underlying database.
Parameter | Type | Applicability | Description | Mandatory |
---|---|---|---|---|
pk-composite | text | true if the pk is composite (default value = false) | false | |
ejb-relation-name | text | The name of the relationship. | true | |
jdbc-table-name | text | The optional name of the relation joint table. | false | |
ejb-relationship-role-name1 | text | The name of the first relationship role. | true | |
foreign-key-jdbc-name1 | text | The column(s) name(s) of the foreign key | true | |
ejb-relationship-role-name2 | text | The name of the second (if the relation is bi-directional) relationship role. | false | |
foreign-key-jdbc-name2 | text | The column names of the foreign key | false |
The jonas.cmp-field-jdbc-mapping element declares the mapping of a container-managed field of an entity to a column of a relational table.
Parameter | Type | Applicability | Description | Mandatory |
---|---|---|---|---|
field-name | text | The field's name. | true | |
jdbc-field-name | text | The column name of the relational table. | true | |
sql-type | text | The sql-type element specifies the SQL type (CMP2 only) | false | |
key-jdbc-name | text | The column name of the primary key composite of this field | false |