• 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Re-Entrant  RSS feed

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

What Exactly is the Definition of "Re-Entrant" on Stateless Session Bean (EJB 3.0) , and if Session A lookups during execution an Instance of Session A again , does this considered "Re-Entrant" , and is this BAD design and why !!??

Thanks
 
author
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Re-entrancy is when an instance of an object that is being invoked already exists on the call stack. Put another way, a method of that object has not yet completed, but has called out to another object and somewhere down in the calling sequence a call has been made back to the original blocked object.

It is generally quite difficult to actually get yourself into a re-entrant condition with stateless session beans, but if you do then the container should throw a ConcrrentAccessException. Simply looking up another bean of the same type is not re-entrancy. It is not necessarily good design, but because it will result in a new instance of the same bean type it will not be re-entrant.
 
And then we all jump out and yell "surprise! we got you this tiny ad!"
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!