This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJBObject Interface  RSS feed

 
Sanju Thomas
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Unlike other iterfaces , why it is not necessory to implement

public abstract javax.ejb.EJBHome getEJBHome()
throws java/rmi/RemoteException
public abstract javax.ejb.Handle getHandle()
throws java/rmi/RemoteException
public abstract java.lang.Object getPrimaryKey()
throws java/rmi/RemoteException
public abstract boolean isIdentical(javax.ejb.EJBObject)
throws java/rmi/RemoteException
public abstract void remove()
throws java/rmi/RemoteException, javax/ejb/RemoveException

method in our Remote class.
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't actually implement this interface, you just extend it to creat your component interface. The container will typically end up implementing your component interface that will handle all the network issues and so forth. So, it's really just for the container ... if that makes sense.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!