• 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

Query about "reentrant" tag in ejb-jar.xml file(in case of Entity Bean) ??

 
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all friends,
I am new to EJB I couldn't understand in ejb-jar.xml file in case Entity Bean what is the function of "reentrant" tag and what is the effect of value 'true' and 'false' of this tag.Can any one please explain it.
Regards
Bikash
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The reentrant element dictates whether a bean can call itself through another bean.
A given bean A is reentrant if A calls B,which calls back on bean A.
This is a Special case of multithreading because it is really only one path of execution that happens to loop back on itself.
If we would like to support reentrant behavior,
we should set this setting to True so that container will allow two threads to run inside of bean A at once.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic