[jboss-dev-forums] [Design of EJB 3.0] - The default local interface (vs. EJBTHREE-785)

wolfc do-not-reply at jboss.com
Tue Oct 9 10:49:48 EDT 2007


With the implementation of EJBTHREE-785 we consider all interfaces implemented by the bean and it's super classes to be a candidate for remote or local business interface. This leads to problems in establishing the default local business interface.
"EJB 3 4.6.6" wrote : * If bean class implements a single interface, that interface is assumed to be the business interface of the bean. This business interface will be a local interface unless the interface is  designated as a remote business interface by use of the Remote annotation on the bean class or interface or by means of the deployment descriptor.
  | * A bean class is permitted to have more than one interface. 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.
The second line allows for the inheritance of interfaces from a super (sort of). But the first specifies that if the bean itself implements one interface it must be the business interface (either remote or local). So any inherited interfaces become invalid at that point.
If there are no objections, we'll implement it by the letter.

http://jira.jboss.com/jira/browse/EJBTHREE-785

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093070#4093070

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093070



More information about the jboss-dev-forums mailing list