web server - Borland Technical Publications

web server - Borland Technical Publications web server - Borland Technical Publications

techpubs.borland.com
from techpubs.borland.com More from this publisher
12.11.2014 Views

EJB Container-level Properties Table 31.1 ejb.no_sleep=true|false EJB container properties (continued) Property Description Default ejb.trace_container=true|false ejb.xml_validation=true|false ejb.xml_verification=true|false ejb.classload_policy=per_module| container|none ejb.module_preload=true|false ejb.system_classpath_first=true|false ejb.sfsb.keep_alive_timeout= Typically set from a main program that embeds a Container. Setting this property prevents the EJB container from blocking the current thread, thereby returning the control back to user code. Turns on useful debugging information that tells the user what the Container is doing. Installs debugging message interceptors. If set, the XML descriptors are validated against its DTD at deployment time. If set, J2EE archive is verified at deployment time. Defines class loading behavior of standalone EJB container. Not applicable to the Partition. If set to per_module, the container uses a new instance of custom class loader with each J2EE archive deployed. If set to none, the container uses the system class loader. Hot-deployment and deployment of EARs does not work in this mode. If set to container, container uses single custom class loader. This enables deployment of EARs, but disables hot-deployment feature. Loads the entire J2EE archive into memory at deployment time, so the archive can be overwritten or rebuilt. This option is required by JBuilder running a standalone ejb container. If set to true, the custom classloader will look at the system classpath first. Defines the default value of the element used in the ejbborland.xml descriptor. This property affects an EJB whose element is skipped or set to 0. The purpose of this property is to define a time interval in seconds how long to keep an inactive stateful session bean alive in the persistent storage (JSS) after it was passivated. After the time interval ends, JSS deletes the session's state from the persistent storage, so it becomes impossible to activate it later. false false true false per_modul e false false 86400 (=24 hours) Chapter 31: EJB, JSS, and JTS Properties 333

EJB Container-level Properties Table 31.1 EJB container properties (continued) Property Description Default ejb.cacheTimeout= ejb.sfsb.aggressive_passivation=true| false ejb.sfsb.factory_name= ejb.logging.verbose=true|false ejb.logging.doFullExceptionLogging=true| false ejb.jss.pstore_location= ejb.jdb.pstore_location= This property hints the container to invalidate the data fields of entity beans after a specified time-out period. Use the property by specifying the interval for which the container will not load a bean's state from the database, but uses the cached state instead. At the end of the expire period specified, the container marks the bean as dirty (but keeps its association with the primary key), forcing the instance to load its state from the database (not the cache) before it can be used in any new transactions. The property is expected to be used by entity beans that are not frequently modified. The property is a positive integer representing cache intervals in seconds. This is only valid for commit mode A. It is ignored if specified for any other commit mode. If set to true, stateful session bean is passivated no matter when it was used last time. This enables fail-over support, so if an EJB container fails, the session can be restored from the last saved state by one of EJB containers in the cluster. If set to false, only the beans which were not used since the last passivation attempt, are passivated to JSS. This makes the fail-over support less deterministic, but speeds things up. Use this setting, to trade performance for high-availability. If set, makes the stateful session beans use a different JSS from the one that is running within the same EJB container or Partition. Specify the factory name of JSS to use. This is the name under which JSS is registered with Smart Agent (osagent). If set to true, the EJB container logs messages about unexpected situations which potentially could require user's attention. The messages are marked with >>>> EJB LOG

EJB Container-level Properties<br />

Table 31.1<br />

EJB container properties (continued)<br />

Property Description Default<br />

ejb.cacheTimeout=<br />

ejb.sfsb.aggressive_passivation=true|<br />

false<br />

ejb.sfsb.factory_name=<br />

ejb.logging.verbose=true|false<br />

ejb.logging.doFullExceptionLogging=true|<br />

false<br />

ejb.jss.pstore_location=<br />

ejb.jdb.pstore_location=<br />

This property hints the container to<br />

invalidate the data fields of entity beans<br />

after a specified time-out period. Use<br />

the property by specifying the interval<br />

for which the container will not load a<br />

bean's state from the database, but<br />

uses the cached state instead. At the<br />

end of the expire period specified, the<br />

container marks the bean as dirty (but<br />

keeps its association with the primary<br />

key), forcing the instance to load its<br />

state from the database (not the cache)<br />

before it can be used in any new<br />

transactions. The property is expected<br />

to be used by entity beans that are not<br />

frequently modified.<br />

The property is a positive integer<br />

representing cache intervals in<br />

seconds.<br />

This is only valid for commit mode A. It<br />

is ignored if specified for any other<br />

commit mode.<br />

If set to true, stateful session bean is<br />

passivated no matter when it was used<br />

last time. This enables fail-over support,<br />

so if an EJB container fails, the session<br />

can be restored from the last saved<br />

state by one of EJB containers in the<br />

cluster. If set to false, only the beans<br />

which were not used since the last<br />

passivation attempt, are passivated to<br />

JSS. This makes the fail-over support<br />

less deterministic, but speeds things up.<br />

Use this setting, to trade performance<br />

for high-availability.<br />

If set, makes the stateful session beans<br />

use a different JSS from the one that is<br />

running within the same EJB container<br />

or Partition. Specify the factory name of<br />

JSS to use. This is the name under<br />

which JSS is registered with Smart<br />

Agent (osagent).<br />

If set to true, the EJB container logs<br />

messages about unexpected situations<br />

which potentially could require user's<br />

attention. The messages are marked<br />

with >>>> EJB LOG

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!