This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
 
subject: Home methods
 
Similar Threads
how to call an EJB from another EJB(both are in different jar files)
HFB SFSB
difference between Home & Component business methods?
remove method + transaction attribute
Home and Remote Interface