[Design of EJB 3.0] - Re: The default local interface (vs. EJBTHREE-785)
by ALRubinger
"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
18 years, 6 months
[Design of JCA on JBoss] - Re: DeploymentInfo/Template MCF
by scott.stark@jboss.org
Its needs to be done in applyTemplates. The initial creation to create the template properties is just a way to leverage the existing annotations and AbstractManagedObjectFactory. In reality that ManagedObject and group are unused. The AbstractTemplateInfoFactory.createInfo(...) call could just as easily take the ManagedConnectionFactoryDeploymentGroup.class and scan for the ManagedPropertys that should be part of the template. It gets away from the issue of knowing what ds type and name are at that point.
One thing we have gotten confused about is that the ManagedPropertys are used in two different ways, as detached by value objects used by admin clients (similar to detached ejb3 entities), and as server side objects that are really proxies for properties on the underlying metadata. Step 1 and the DeploymentTemplateInfo represents the client side case, applyTemplates represents the server side case.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093682#4093682
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093682
18 years, 6 months