aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Can the same business interface be used to serve both local and remote clients ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Can the same business interface be used to serve both local and remote clients ?" Watch "Can the same business interface be used to serve both local and remote clients ?" New topic
Author

Can the same business interface be used to serve both local and remote clients ?

Benoît de Chateauvieux
Ranch Hand

Joined: Aug 10, 2007
Posts: 183
Hi all,

In an old thread, Mark Garland and I have a discussion about EJB3 Business Interfaces.
http://www.coderanch.com/t/163305/java-EJB-SCBCD/certification/Differentiating-parameters-handled

Wiley - Mastering EJB3 - 4th Edition - page 66 says:
Alternatively, the same business interface can be used to serve both local and remote clients.


But the EJB3 specs - chapter 4.6.6 says:
The same business interface cannot be both a local and a remote business interface of the bean.


I can't find any errata of the Wiley book.
What do you think about that ?

Many thanks in advance,

Beno�t


SCJP5 | SCBCD5 | SCEA5 Part 1
Mark Garland
Ranch Hand

Joined: Nov 11, 2006
Posts: 226
I'm glad you asked that question.

I was just this minute about to post a message as I'm struggling to find the book's Errata.

Unless the book is *perfect*.


28/06/06 - SCJP - 69%, 05/06/07 - SCWCD - 92%, 28/02/08 - IBM DB2 v9 Fundamentals (Exam 730) - 87%, 18/11/08 - IBM DB2 v9 DBA (Exam 731) - 89%, 26/02/11 - SCBCD - 88%
Wagner Danda Da Silva Filho
Ranch Hand

Joined: Mar 21, 2003
Posts: 80
I'm also happy you posted this since I was going to ask the same question. I just tried using both @Local and @Remote annotations in a class and I got this error: "Local and Remote Interfaces cannot have duplicate interface for bean XYZ".

But I still don't understand *why* I can't have the same interface... Anybody?


SCJP, SCWCD
Mark Garland
Ranch Hand

Joined: Nov 11, 2006
Posts: 226
No takers?
This forum seems a little dead compared with the SCWCD one?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can the same business interface be used to serve both local and remote clients ?