This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Websphere and the fly likes Stateless Session Bean in Websphere Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Stateless Session Bean in Websphere" Watch "Stateless Session Bean in Websphere" New topic
Author

Stateless Session Bean in Websphere

Sri Rangan
Ranch Hand

Joined: Dec 08, 2001
Posts: 160
1)Is there any way to make sure (in websphere3.5) to have always only one particuler stateless session bean instance in the container?
2)Is it possible to set one particular Stateless Session to have highest time out period. Sample deployment descriptor for one stateless session bean which we are using looks like this..(We use ANT for this)
//////////////////////////////////
<buildDeploymentDescriptor <br /> appServer="${appServerName}"<br /> descriptorFileName="${descriptorFileName}"<br /> <br /> beanName="com/TestSessionBean.ser" <br /> timeOut="0"<br /> stateManagement="STATELESS_SESSION"<br /> homeInterface="com.TestSessionBeanHome"<br /> remoteInterface="com.TestSessionBeanService"<br /> enterpriseBean="com.TestSessionBeanBean"<br /> JNDIName="${ejbQualifier}TestSessionBean"<br /> transactionAttribute="TX_REQUIRES_NEW" <br /> isolationLevel="READ_COMMITTED" <br /> runAsMode="SYSTEM_IDENTITY" <br /> dependency1="com.TestSessionBeanHome"<br /> dependency2="com.TestSessionBeanBeanService"<br /> dependency3="com.TestSessionBean"<br /> />
///////////////////////////////////
If you look at the descriptor, the timeout setting is =0. Does it mean that once this statless session bean instance served one cleint request, it would be removed by container from pool?
Is there any maximum limit time for this "timeout". Our requirement is to keep this instance of this one session bean as long as possible.
Thanks
 
Consider Paul's rocket mass heater.
 
subject: Stateless Session Bean in Websphere
 
Similar Threads
Stateless Session bean in Websphere
Handling of Exceptions Thrown by the Timeout Callback Method
Timers question
Confused reg. a passage in Ed Roman's Book
Stateless Session bean in Websphere