@sunone Tag Reference

Tags for creation of SunONE/iPlanet specific resources

Applies to: all EJB types on class level

@sunone Method Level Tags

@sunone.fetched-with

@sunone.relation

@sunone Field Level Tags

@sunone Class Level Tag Usage

@sunone.bean (0..1)

All parameters of <session-deployment/>, <entity-deployment/> and <message-driven-deployment/> are placed under this class level tag.

Applies to: all EJB types

ParameterTypeApplicabilityDescriptionMandatory
guidtext A string that represent the guid of the Ejb in question false
pass-timeoutintPassivation timeout in seconds used by the container. This value can be changed during runtime by the Administration Tool.true
pass-by-valueboolControls use of Pass by Value/Reference semantics for calls from an enterprise bean to remote interface methods in another EJB that is co-located within the same process. If true, pass by value is used. If false, pass by reference. NB in version 7.0, Sun changed the relevant DD element to pass-by-reference, with the opposite meaning. You should still use this tag in exactly the same way, the template takes account of the change. false
session-timeoutintOnly relevant for SessionBeansThe session timeout. In seconds, according to the DTD; in minutes, according to Sun's online documentation... NB According to the DTD it's mandatory for all session beans, but surely it's only relevant for stateful ones? true
transaction-manager-typetextThe transaction manager type for the component. Only relevant to version 6.5. Allowed values are 'local' and 'global'.
Valid options are:

local

global

Default value(s):


false
failover-requiredboolThis is a True or False value indicating whether failover is requiredfalse
iiopboolOptional element indicating if the bean is rich client enabled. (true | false), default value is false

Default value(s):

false
false
destination-nametextOnly relevant for MessageDrivenBeansSpecifies the name of the Queue or the Topic a MDB listens to.true
max-message-limitintOnly relevant for MessageDrivenBeansThe maximum number of messages to load into a JMS Sessiontrue
durable-nametextOnly relevant for MessageDrivenBeansThe durable name of the topic subscriptionfalse
max-mdb-pool-sizeintOnly relevant for MessageDrivenBeansThe maximum size of the ServerSessionPooltrue
min-mdb-pool-sizeintOnly relevant for MessageDrivenBeansThe minimum size of the ServerSessionPooltrue
cmp-mapping-propertiestextCMP entity beanSpecifies the location of the persistence vendor's specific O/R database mapping file.true
read-onlyboolBMP entity beanA flag specifying that this bean is a read-only bean.

Default value(s):

false
false
refresh-periodintBMP entity beanSpecifies the rate at which a read-only-bean must be refreshed from the data source, in seconds. If this is less than or equal to zero, the bean is never refreshed; if greater than zero, the bean instances are refreshed at the specified interval. This rate is just a hint to the container. Default is 600.

Default value(s):

600
false
commit-optiontextBMP entity beanOptionally specifies the commit option that will be used on transaction completion. Valid values are B or C (commit option A is not supported for the Sun ONE Application Server 7 release). Default value is B.
Valid options are:

B

C

Default value(s):

B
false

@sunone.bean-cache (0..1)

Specifies the entity bean cache properties. Used for entity beans and stateful session beans.

Applies to: all EJB types (doesn't actually apply to SFSB and MDB, but the template will ignore it for those)

ParameterTypeApplicabilityDescriptionMandatory
max-cache-sizeint Optionally specifies the maximum number of beans allowable in cache. A value of zero indicates an unbounded cache. In reality, there is no hard limit. The max-cache-size limit is just a hint to the cache implementation. Default is 512.

Default value(s):

512
false
cache-idle-timeoutintOptionally specifies the maximum time in seconds that a bean can remain idle in the cache. After this amount of time, the container can passivate this bean. A value of 0 specifies that beans may never become candidates for passivation. Default is 600.

Default value(s):

600
false
removal-timeoutintOptionally specifies the amount of time in seconds a bean instance can remain idle in the container before it is removed (timeout). A value of 0 specifies that the container does not remove inactive beans automatically. The default value is 5400. If removal-timeout is less than or equal to cache-idle-timeout, beans are removed immediately without being passivated.

Default value(s):

5400
false
victim-selection-policytextOptionally specifies how stateful session beans are selected for passivation. Possible values are First In, First Out (FIFO), Least Recently Used (LRU), Not Recently Used (NRU). The default value is NRU, which is actually pseudo-LRU.
Valid options are:

FIFO

LRU

NRU

Default value(s):

NRU
false

@sunone.bean-pool (0..1)

Specifies the pool properties of stateless session beans, entity beans, and message-driven bean.

Applies to: all EJB types (doesn't actually apply to SFSB, but the template will ignore it for those)

ParameterTypeApplicabilityDescriptionMandatory
steady-pool-sizeintSpecifies the initial and minimum number of beans maintained in the pool. Default is 32.

Default value(s):

32
false
resize-quantityintSpecifies the number of beans to be created if the pool is empty (subject to the max-pool-size limit). Values are from 0 to MAX_INTEGER.false
max-pool-sizeintSpecifies the maximum number of beans in the pool. Values are from 0 to MAX_INTEGER. Default is to server.xml or 60.false
pool-idle-timeoutintSpecifies the maximum time in seconds that a bean is allowed to be idle in the pool. After this time, the bean is removed. This is a hint to the server. Default time is 600 seconds (10 minutes).

Default value(s):

600
false

@sunone.consistency (0..1)

Specifies container behavior in guaranteeing transactional consistency of the data in the bean. Optional. Any one of the parameters may be used alone, or lock-when-modified and check-all-at-commit may also be used together. If not present, none is assumed.

Applies to: entity bean

ParameterTypeApplicabilityDescriptionMandatory
noneboolNo consistency checking occurs.false
check-modified-at-commitboolThis flag is not implemented for Sun ONE Application Server 7.false
check-all-at-commitboolChecks modified instances at commit time.false
lock-when-modifiedboolThis flag is not implemented for Sun ONE Application Server 7.false
lock-when-loadedboolAn exclusive lock is obtained when the data is loaded.false

@sunone.finder (0..1)

Describes the finders for container-managed persistence (CMP) 1.1 with a method name and query.

Applies to: CMP 1.1 entity bean

ParameterTypeApplicabilityDescriptionMandatory
method-nametextSpecifies the method name for the query field.true
query-paramstextOptional data that specifies the query parameters for the finderfalse
query-filtertextSpecifies the query filter for the CMP 1.1 finder. Optional.false
query-variablestextOptional data that specifies variables in query expression for the CMP 1.1 finder.false

@sunone.persistence-manager (0..1)

defines all the persistence manager specific information

Applies to: Used in Entity beans.

ParameterTypeApplicabilityDescriptionMandatory
factory-class-nametextFactory class used to create new instances of a persistence managertrue
properties-file-locationtextLocation in jar file of properties file, relative to the META-INF/ of the jarfalse

@sunone.pool-manager (0..1)

Descriptor for cache pool attributes.

Applies to: Used in Entity beans.

ParameterTypeApplicabilityDescriptionMandatory
commit-optiontextA string field whose valid values are either COMMIT_OPTION_C, or COMMIT_OPTION_B. Default is the COMMIT_OPTION_C value.
Valid options are:

COMMIT_OPTION_B

COMMIT_OPTION_C

Default value(s):

COMMIT_OPTION_C
true
ready-pool-timeoutintready pool timeout used by the container. An integer in seconds. Default is 0 (infinite) This value can be changed during runtime by the Administration Tool.

Default value(s):

0
true
ready-pool-maxsizeintmaxsize of the ready cache (in number of entries). An integer that defaults to 0. This value can be changed during runtime by the Administration Tool.

Default value(s):

0
true
free-pool-maxsizeintmaxsize of the instance free pool (in number of entries). An integer that defaults to 0. This value can be changed during runtime by the Administration Tool.

Default value(s):

0
true

@sunone Method Level Tag Usage

@sunone.fetched-with (0..1)

Specifies the fetch group configuration for fields and relationships. Optional. A field may participate in a hierarchical or independent fetch group. If the fetched-with element is not present, the value "none" assumed. Only one of the parameters should be specified.

Applies to: EJB entity bean fields. On the persistent fields getter methods

ParameterTypeApplicabilityDescriptionMandatory
levelintSpecifies a hierarchical fetch group. The value must be an integer. Fields and relationships that belong to a hierarchical fetch group of equal or lesser value are fetched at the same time. The value of level must be greater than zero.false
named-grouptextSpecifies the name of an independent fetch group. All the fields and relationships that are part of a named group are fetched at the same time.false
noneboolA value of "true" indicates that this field or relationship is fetched by itself.false

@sunone.relation (0..*)

Specifies the column pairs in the mapping of a relation. Must occur at least once, though may occur multiple times, once for each column pair.

Applies to: EJB entity bean fields. On the relation fields getter methods

ParameterTypeApplicabilityDescriptionMandatory
columntextTABLE.COLUMN for this end of the relation.true
targettextTABLE.COLUMN for the target end of the relation.true

@sunone Field Level Tag Usage