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

Moderator: admin

Post Reply
himaiMinh
Posts: 358
Joined: Fri Nov 29, 2013 8:26 pm
Contact:

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

Post 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.

admin
Site Admin
Posts: 10386
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.

himaiMinh
Posts: 358
Joined: Fri Nov 29, 2013 8:26 pm
Contact:

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

Post 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests