This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes implements Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "implements" Watch "implements" New topic
Author

implements

Suri Babs
Ranch Hand

Joined: Mar 27, 2003
Posts: 50
Understand following and let me know if any answer for this. Consider the following bean as Stateless Session bean.
// Bean home interface
public interface TestHome extends EJBHome {
// create method
}
// Bean Remote interface
public interface Test extends EJBObject {
// Declare bussiness methods
}
// Now bean class
public class TestBean implements SessionBean{
// callback methods
// and business methods
}
As you can see that bean class implementing SessionBean, but my question is according rules of java, the "TestBean" also implement the "Test" remote interface like below
public class TestBean implements SessionBean, Test {
// callback methods
// business methods
}
since it implements all the business logic methods declared in the "Test" remote interface.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: implements
 
Similar Threads
Session Beans and SessionBean interface.
EJBObject question.
Implements
Java Beat Question
Using interface for both component and bean