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

Complete Index of EJB Properties Table 31.2 Entity Bean properties (continued) Property Type Description Default ejb.maxBeansInTransactions Integer A transaction can access any/large number of entities. This property sets an upper limit on the number of physical bean instances that EJB container will create. Irrespective of the number of database entities/rows accessed, the container will manage to complete the transaction with a smaller number of entity objects (dispatchers). The default for this is calculated as ejb.maxBeansInCache/2. If the ejb.maxBeansInCache property is not set, this translates to 500. ejb.transactionCommitMode Enumeration (A| Exclusive, B|Shared, C|None) This flag indicates the disposition of an entity bean with respect to a transaction. The values are: A or Exclusive: This entity has exclusive access to the particular table in the DB. Thus, the state of the bean at the end of the last committed transaction can be assumed to be the state of the bean at the beginning of the next transaction. For example, to cache the beans across transactions. B or Shared: This entity shares access to the particular table in the DB. However, for performance reasons, a particular bean remains associated with a particular primary key between transactions, to avoid extraneous calls to ejbActivate and ejbPassivate between transactions. This means the bean stays in the active pool. This setting is the default. C or None: This entity shares access to the particular table in the DB. A particular bean does not remain associated with a particular primary key between transactions, but goes back to ready pool after every transaction. This is generally not a useful setting. Calculated Shared Chapter 31: EJB, JSS, and JTS Properties 339

Complete Index of EJB Properties Table 31.2 Entity Bean properties (continued) Property Type Description Default ejb.transactionManagerInstan ceName String Use this property to specify by name a particular transaction manager for driving the transaction started for method calls. This option is useful in cases where you need 2PC completion of a particular transaction but want to avoid the RPC overhead of using a 2PC transaction manager for all other transactions in the system. This is also supported for MDBs. None 340 BES Developer’s Guide

Complete Index of EJB Properties<br />

Table 31.2<br />

Entity Bean properties (continued)<br />

Property Type Description Default<br />

ejb.transactionManagerInstan<br />

ceName<br />

String<br />

Use this property to<br />

specify by name a<br />

particular transaction<br />

manager for driving the<br />

transaction started for<br />

method calls. This option<br />

is useful in cases where<br />

you need 2PC completion<br />

of a particular transaction<br />

but want to avoid the RPC<br />

overhead of using a 2PC<br />

transaction manager for all<br />

other transactions in the<br />

system. This is also<br />

supported for MDBs.<br />

None<br />

340 BES Developer’s Guide

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

Saved successfully!

Ooh no, something went wrong!