• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJBObject.remove() for Stateless session bean

 
Prashant Neginahal
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

What will happen if u call remove() on statless session bean? In container, an association between EJBObject and bean(in pool) happens only when client calls business method.So, if client directly call remove(), which bean will be removed?

Thanks,
Prashant
 
Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Prashant Neginahal:
Hi All,

What will happen if u call remove() on statless session bean? In container, an association between EJBObject and bean(in pool) happens only when client calls business method.So, if client directly call remove(), which bean will be removed?

Thanks,
Prashant


This question had been asked & answered before. For stateless session beans, the clients have no say over the removal of the beans. For a detailed explanation, do a quick search on the forum.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!