Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can entity beans call remove() method from Component interface?

 
trivikram Kumar
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If yes,on which instance of the bean are we calling it??
Could someone answer this question please...
 
Prashu Negu
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can call remove on component interface. If it is already associated with corresponding bean instance, it will be called on that. If NOT i guess Container will pick instance from pool and load it and then call remove on that.
 
sawan parihar
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If yes,on which instance of the bean are we calling it??
Could someone answer this question please


We are talking about calling remove() on component interface that means you have a reference to the stub of a remote EJBObject that indeed is unique.

Think in this way that from where you got the remote component interface.

Hope it helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic