This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

SystemException from Stateless Session Bean

 
Ranch Hand
Posts: 62
Flex Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I just read throwing SystemException causes the container to discard the bean instance. For a stateful session bean the discarded bean can never be used again. But what about stateless session beans? The container discards stateless session beans also right? In that case is the bean removed from the pool too or does it return to the pool so that another client might invoke the same bean?

Pardon if my doubt is stupid; I am bit confused going through Exception part

Thanks in advance!
 
Sheriff
Posts: 6619
1253
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For SLSB, it is not guaranteed that the same bean instance will be reused or not.
 
Jisha Anand
Ranch Hand
Posts: 62
Flex Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Devaka Cooray wrote:For SLSB, it is not guaranteed that the same bean instance will be reused or not.



Devaka,

You mean its not guaranteed that the discarded SLSB will be returned to the pool or the bean will be removed from the pool?

Thanks a lot!
 
    Bookmark Topic Watch Topic
  • New Topic