Page 1 of 1

About Question enthuware.oce-ejbd.v6.2.537 :

Posted: Tue Apr 28, 2015 1:44 pm
by himaiMinh
I think if we don't add @Local to the interface , that interface is a local interface by default.
So, I think :
option 3
the developer can add @Local to either of the local interface ...

and
option 6
only add@Remote ... no need to do anything for the local interface
Without @Local in the interface, that interface is local by default.

Re: About Question enthuware.oce-ejbd.v6.2.537 :

Posted: Tue Apr 28, 2015 7:58 pm
by admin
As per section 4.9.7 - If a bean class has more than one interface—excluding the interfaces listed below—any business interface of the bean class must be explicitly designated as a business interface of the bean by means of the Local or Remote annotation on the bean class or interface or in the deployment descriptor.

Re: About Question enthuware.oce-ejbd.v6.2.537 :

Posted: Wed Apr 29, 2015 9:38 am
by himaiMinh
Hi admin,
So, if the bean class only implement one interface and that interface does not have @Local annotation, that interface is a local interface by default.

But if the bean class implements multiple interfaces and the interfaces don't have @Local annotation, then the bean provider has to explicitly annotate @Local/@Remote.

Correct me if I am wrong.