Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejbRemove in bean class

 
Brian Nice
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
 
Mikalai Zaikin
Ranch Hand
Posts: 3371
12
  • 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.
 
Kathy Sierra
Cowgirl and Author
Rancher
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic