This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!