This content has been marked as final.
Show 4 replies
-
1. Re: Exception on Remote access to EJB3-Beans
nexos Sep 20, 2005 12:10 PM (in response to epbernard)"epbernard" wrote:
@Remote
Whats wrong with "@Remote"? -
2. Re: Exception on Remote access to EJB3-Beans
bill.burke Sep 20, 2005 1:35 PM (in response to epbernard)an interface cannot be both a @Local and @Remote interface. But you can do:
interface Top {}
@Local interface MyLocal extrends top {}
@Remote interface MyRemote extends Top {} -
3. Re: Exception on Remote access to EJB3-Beans
nexos Sep 21, 2005 12:18 PM (in response to epbernard)"bill.burke@jboss.com" wrote:
an interface cannot be both a @Local and @Remote interface. But you can do:
interface Top {}
@Local interface MyLocal extrends top {}
@Remote interface MyRemote extends Top {}
*argl* That's stupid - thats not lightweight... but it works -
4. Re: Exception on Remote access to EJB3-Beans
bill.burke Sep 21, 2005 1:23 PM (in response to epbernard)Yes at first glance, it seems a little awkward, but makes sense when you look at injection:
@EJB MyInterface ejbref;
If MyInterface is both local and remote, there is no way for the container to know if you want a local or remote proxy injected without additional metadata.