• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Stateless Session Bean in Websphere

 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic