aspose file tools*
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: 9381
    
    2

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: 9381
    
    2

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: 9381
    
    2

Thanks for the post!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Default business interface