• 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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
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!