File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Home methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Home methods" Watch "Home methods" New topic
Author

Home methods

Maneesh Chauahn
Ranch Hand

Joined: Mar 06, 2006
Posts: 48
Hi All ,
What the home methods in the EJB . Why it is mandatory that for each home interface method (Xxxx), a crossponding ejbHomeXxxx method must exist in the bean class.

Thanks in advance for your prompt answer

Maneesh
Panav Kumar
Greenhorn

Joined: Dec 26, 2006
Posts: 3
An enterprise Bean's home interface defines the methods that allow a client to create, find, and remove EJB objects. All bean classes must implement javax.ejb.EnterpriseBean so it is necessary to implement all the method of interface.


Pranav Kumar
Maneesh Chauahn
Ranch Hand

Joined: Mar 06, 2006
Posts: 48
Hi
Thanks for the anwser. why there is need to define the home method in the home interface as the home methods are more specific to the entire bean not to any specific instance of the entity bean

As per me , we have the option of the remote interface so we can define these methods in this . Why EJB 2.0 define the home method in the home interface , as the home interface also performing the business logic on the behalf of entity bean

This type of business logic can be defined in the remote inteface
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Home methods