This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes business methods & EJBHome interface Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "business methods & EJBHome interface " Watch "business methods & EJBHome interface " New topic
Author

business methods & EJBHome interface

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 758
Hi, I want to know which kind of business methods are better to put in the EJBHome interface ?
I read an EJB book. There one business method updateAll() is put in the EJBHome interface, not in the EJBObject interface . I don't know why, as you know, business method should be in the EJBObject.....
Thanks.
Edward
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
That's not a business method. It's a home method, which is like a "static" method for EJB classes (shared between all instances)...


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: business methods & EJBHome interface
 
Similar Threads
remove() method
can home business method return ....
Chapter 3 - HF Sark study group
Exception thrown by methods in EJBHome, EJBObject, EJBLocalHome and EJBLocalObject?
reason behind why we could not declare final keyword for the methods in the bean clas