tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blevins <>
Subject Re: Using Stateless Bean as WebService and Remote Interface Both
Date Wed, 22 Apr 2009 02:39:38 GMT
Ok, this feature is now in.  In OpenEJB 3.1.1 this will work fine:

     public interface Everything {
         public Object echo(Object o);

     public class SuperBean implements Everything {
         public Object echo(Object o) {
             return o;

Careful though as combining @Remote and @Local on the same interface  
is still against the spec and won't be portable.   It'll work fine in  
OpenEJB, but likely nowhere else.

When using both @Local and @Remote on the same interface, you will  
always get the @Local version of the proxy where possible.


View raw message