[jboss-dev-forums] [Design of EJB 3.0] - Re: The default local interface (vs. EJBTHREE-785)
wolfc
do-not-reply at jboss.com
Tue Oct 9 13:13:34 EDT 2007
The failing scenario is:
@Stateless class MyBean extends SuperBean implements SomeInterface {}
|
| interface SomeInterface {}
|
| class SuperBean implements RemoteInterface {}
|
| @Remote interface RemoteInterface {}
If I follow the letter than SomeInterface will become the only business interface (local).
If I follow EJBTHREE-785 than RemoteInterface will become the only business interface (remote).
I think we can get away with the following:
* If the bean class has no interface (including interfaces from superclasses) explicitly declared as a business interface and the bean class implements a single interface, than that interface is assumed to be the local business interface of the bean.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093133#4093133
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093133
More information about the jboss-dev-forums
mailing list