This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Default business interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Default business interface" Watch "Default business interface" New topic
Author

Default business interface

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9952
    
    3

If I implement an interface in my bean and if I do not annotate the interface, then is it assumed to be the Local interface?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Mirko Bonasorte
Ranch Hand

Joined: May 14, 2007
Posts: 244
According to the specs (par. 4.6.6), it's true only if your session bean implements only one interface.


SCJP<br />SCWCD 1.4 Upgrade (Remember: me stupid)<br />SCWCD 1.4<br /><a href="http://jcp.org/aboutJava/communityprocess/final/jsr220/index.html" target="_blank" rel="nofollow">SCBCD 5.0</a><br /><a href="http://www.enthuware.com" target="_blank" rel="nofollow">SCBCD 5.0 mock exam</a> <br /> <br />SCEA 5 Part1: Preparing...
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9952
    
    3

So if my Session Bean implements a POJI, then the container assumes that the POJI is a Local interface for the Session bean. But if I implement more than one interface, then I have to explicitly annotate the POJI as Local or Remote. Am I right?
Mirko Bonasorte
Ranch Hand

Joined: May 14, 2007
Posts: 244
Yes.
In the specs paragraph above referred there is right your case
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9952
    
    3

Thanks for the post!
 
Have you checked out Aspose?
 
subject: Default business interface
 
It's not a secret anymore!