12.11.2014 Views

web server - Borland Technical Publications

web server - Borland Technical Publications

web server - Borland Technical Publications

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Complete Index of EJB Properties<br />

Stateful Session Bean Properties<br />

Property Type Description Default<br />

ejb.sfsb.passivation_timeout Integer Defines the time interval (in seconds)<br />

when to passivate inactive stateful<br />

session beans into the persistent<br />

storage (JSS).<br />

ejb.sfsb.instance_max Integer Defines the maximum number of<br />

instances of a particular stateful session<br />

bean allowed to exist in the EJB<br />

container memory at the same time. If<br />

this number is reached and a new<br />

instance of a stateful session needs to<br />

be allocated, the EJB container throws<br />

an exception indicating lack of<br />

resources. 0 is a special value. It means<br />

no maximum set. Note, that this<br />

property is applicable only if the<br />

ejb.sfsb.passivation_timeout property is<br />

set to non-zero value.<br />

ejb.sfsb.instance_max_timeout Integer If the max number of stateful sessions<br />

defined by the ejb.sfsb.instance_max<br />

property is reached, the EJB container<br />

blocks a request for an allocation of a<br />

new bean for the time defined by this<br />

property waiting if the number goes<br />

lower before throwing an exception<br />

indicating lack of resources. This<br />

property is defined in ms (1/1000th of<br />

second). 0 is a special value. It means<br />

not to wait and throw an exception<br />

indicating lack of resources<br />

immediately.<br />

ejb.jsec.doInstanceBasedAC Boolean If set to true, the EJB container checks<br />

if the principal invoking an EJB's<br />

method is the same principal that<br />

created this bean. If this check fails, the<br />

method throws a<br />

java.rmi.AccessException (or<br />

javax.ejb.AccessLocalException)<br />

exception. This is applicable to stateful<br />

session beans only.<br />

5<br />

0<br />

0<br />

True<br />

Chapter 31: EJB, JSS, and JTS Properties 345

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

Saved successfully!

Ooh no, something went wrong!