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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "Default business interface" Watch "Default business interface" New topic
Author

Default business interface

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 8795

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, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
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: 8795

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: 8795

Thanks for the post!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Default business interface
 
Similar Threads
How To Call Two Different Classes From the Main Program Using the Same API?
When should Servlet utility classes be Servlets and when ordinary Java classes?
Sortable Collection with indexed properties
Failed to marshal exception problem
exception over RMI