• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can a stateless session bean client call the remove()

 
Saurabh Chaubey
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can a stateless session bean client call the remove() method. If yes then what would be the result of that call?
 
Awishek sinha
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stateless bean client can call the remove method however the container does not remove the bean instance on this call it just move the bean instance to the pool.
 
Saurabh Chaubey
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But what happens to the EJBObject which this bean gets on the create() method call. I mean what will happen if the remove() method is invoked before the business method call on a stateless session bean. As the EJBObject for a stateless session bean is linked up with a bean from the pool by the container on the business method call on the bean.
 
Awishek sinha
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The EJBObject is removed and calling business method on component interface stub would raise an exception.
 
Saurabh Chaubey
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Awishek for a quick reply!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic