user manual

Chapter 31: EJB, JSS, and JTS Properties 387
EJB Container-level Properties
ejb.usePKHashCodeAndEquals=tru
e|false
Data structures that support Active Cache
(TxReady cache) and Associated Cache
(Ready beans cache) use
java.util.Hashtable, and
java.util.HashMap. The values (entity bean
instances) pooled in these data strucutres
are keyed on the primary key values of
the cached entity beans. As we know, the
implementation of Hashtable relies on
computing hashCode() and calling
equals() methods of the keys to place and
locate the values. These data structures
are in the critical code path and are
accessed frequently by the container
while dispatching calls to methods in
entity beans The default in BES is a
reflection-based computation. When this
property is set, the container uses a user
supplied implementation of the equals()
and hashCode() methods.
true
ejb.no_sleep=true|false 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.
false
ejb.trace_container=true|false Turns on useful debugging information
that tells the user what the Container is
doing. Installs debugging message
interceptors.
false
ejb.xml_validation=true|false If set, the XML descriptors are validated
against its DTD at deployment time.
true
ejb.xml_verification=true|
false
If set, J2EE archive is verified at
deployment time.
false
ejb.classload_policy=per_modul
e|container|none
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.
per_mod
ule
ejb.module_preload=true|false 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.
false
Property Description Default