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

ALRubinger do-not-reply at jboss.com
Wed Oct 10 15:27:42 EDT 2007


"wolfc" wrote : Or even better:
  | * If bean class implements a single interface, that interface is assumed to be a  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.

I think this is the correct case.

"wolfc" wrote : 
  | 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). 
  | 

Disagree with the last statement; unclear here whether the spec dictates that "SomeInterface" must be the *only* local business interface:

"EJB3 4.6.6" wrote : 
  | If bean class implements a single interface, that interface is assumed to be the (local) business interface of the bean. 

So the question becomes: can we intrepret "the" as "a"?

If so, in the case above I'd have "SomeInterface" be exposed as local business, as well as "RemoteInterface" as remote business.

S,
ALR

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

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



More information about the jboss-dev-forums mailing list