Ok, this feature is now in.  In OpenEJB 3.1.1 this will work fine:

    @Local
    @Remote
    @WebService
    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.


-David

Reply via email to