aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes what methods do you put in EJB remote interface? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "what methods do you put in EJB remote interface?" Watch "what methods do you put in EJB remote interface?" New topic
Author

what methods do you put in EJB remote interface?

yamini nadella
Ranch Hand

Joined: Apr 13, 2004
Posts: 257
what methods do you put in EJB remote interface?
(a)defines signatures of EJB business methods
(b)defines all methods that client can call on EJB.

it seems both A and B correct. According to my idea only A is correct because we wont put create() and remove() methods in remote interface?
Santosh Pasupuleti
Ranch Hand

Joined: Aug 10, 2005
Posts: 97
"defines signatures of EJB business methods" seems to be the right answer.
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Originally posted by yamini nadella:
because we wont put create() and remove() methods in remote interface?


Why wouldn't you but create() and remove() methods in remote interfaces?
Pavel Grushetzky
Greenhorn

Joined: Oct 12, 2005
Posts: 13
create() is supposed to be in home interface, isn't it?
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Correct. So create() isn't any help at all. But then there is remove(). remove():void is introduced through the javax.ejb.EJBObject interface along with getEJBHome():EJBHome, getHandle():Handle, getPrimaryKey() bject, isIdentical(o:EJBObject):boolean when you extend fron the EJBObject. So remove() has to be there but its there through interface inheritance. So in fact you "only" define the business method signatures with their return type in your interface.

You do implement an ejbRemove() in your bean - but thats not what the question is asking.

Note that the question is inaccurate in its use of the term signature; a signature consists of the method name and the parameter types but it does not include the method's return type - and you will have to specify the methods return type in the remote interface.
[ October 12, 2005: Message edited by: Peer Reynders ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what methods do you put in EJB remote interface?