• 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

ejbRemove in bean class

 
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is probably a stupid question, but I just wanted some clarification. Does the ejbRemove() container callback in the actual bean class get called in response to any of the remove() methods? The two in the home class and the one in the component class?
Thanks
 
Rancher
Posts: 3620
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can say that for
1. enity bean. client calls remove(), server calls ejbRemove()
2. stateFUL bean. client calls remove(), server calls ejbRemove()
3. statLESS bean. client calls remove(), server DOES NOT call ejbRemove().
server calls ejbRemove() on statless bean when it decides to reduce pool of "method-ready" pool.
I can be wrong.
 
Cowgirl and Author
Posts: 1589
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy, yes all versions of remove() will have the same behavior, so whatever behavior happens (or does NOT happen -- as with stateLESS beans) when the client invokes remove() on the component interface will *also* happen if the client invokes one of the home remove() methods (assuming they invoke the appropriate one... in other words, assuming the client doesn't invoke remove(Object pk) on a session bean )
cheers,
kathy
 
Look! I laid an egg! Why does it smell like that? Tiny ad, does this smell weird to you?
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic