I recently started my SCBCD preparation from EJB 3 in Action.
One question I have in mind is do I need to have separate interface to provide the annotation @Remote and @Local Can't I have both in a single one since my clients can be either remote or local for the same bean implementation?
Of course you're right. With @Remote it's always a remote call but I don't know how much difference in performance this makes with a call to localhost. Perhaps it doesn't matter depending on your requirements. Perhaps a J2EE container can even make some optimizations here?!?
Unfortunately I don't know of any real solution to you problem. I never thought of it but it's obviously unhandy that one must have two different interfaces even if they declare the same methods.
The best idea is perhaps to use a common base interface with the business methods and just extend your two interfaces from it without additional method declarations!
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop