|
Question |
How can Session Bean Timeouts be configured?
Questions about Session Bean Timeouts and how they can be configured:
1) What is the default timeout value for stateful session bean in IBM®
WebSphere® Application Server
V5.1?
2) Is this default timeout value tunable on a server basis?
3) What is the default timeout value for stateful session beans in
WebSphere Application Server V6.0?
4) Is this default timeout value tunable on a server basis for WebSphere
Application Server V6.0?
5) There is "inactive pool cleanup interval" for EJB™ container. Is this
for cleaning up the stateless session bean pool only?
6) Under "EJB Cache settings", there is also a "cleanup interval", is this
for the cache only? |
|
|
|
Answer |
Here are the answers to the customer's initial questions:
1) Answer: Stateful session beans do have a default timeout. The
default is 600 seconds. If this default value is not acceptable it can be
changed to something else in tooling in the EJB deployment descriptor
editor. Stateless beans do not have a timeout because they have no
conversational state and are not dedicated to any one client.
2) Answer: There is NO way to set a Global Timeout that applies to all
stateful session beans. A user can only set the timeout on a bean-by-bean
basis.
3) Answer: Same as described in #1 (i.e. 600 seconds).
4) Answer: same as described in #2 (i.e. no, it is not tunable on a server
basis).
5) Answer: No, this is for all bean pools. Note that stateful session
beans are NOT pooled, so this really applies to stateless session and
entity bean pools.
6) Answer: Yes, this applies to the cache only. See: EJB
Container tuning
Timeouts are specified according to the transaction type:
* Container-managed transactions. The Bean Provider configures the
timeout attribute in the deployment descriptor.
* Bean-managed transactions. An application calls the
UserTransaction.setTransactionTimeout method in the codes.
Sun Java Specifications:
http://java.sun.com/reference/docs/ |
|
|
|
|
Cross Reference information |
Segment |
Product |
Component |
Platform |
Version |
Edition |
Application Servers |
Runtimes for Java Technology |
Java SDK |
|
|
|
|
|
|