[Design the new POJO MicroContainer] - Re: expressing dependent states
by alesj
"alesj" wrote :
| ..., since demand/supply concept handles things beyond contexts handled by MC - a generic match mechanism. And as such some items we demand might not have dependent state.
|
This part is wrong, or at least it doesn't explain the real problems behind our demand/supply.
First, items *do* have dependent state, since every supply is backed-up by a kernel controller context.
It's the way we have it implemented.
Currently we add/register all supplies from BeanMetaData at Installed state. So no way of knowing if some supplier can supply the supply before (a lot of supplies here :-).
We can extend the supply notion in a similar way we extended installs, to be applicable in any state.
Then having
| Map<ControllerState, Map<Object, List<KernelControllerContext>>>
|
in AbstractKernelController.
"alesj" wrote :
| Should we create new context-demand notion?
|
Definitely not. :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152544#4152544
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152544
17 years, 10 months
[Design of EJB 3.0] - Re: EJBTHREE-1062 and metadata
by ALRubinger
"emuckenhuber" wrote : 1) In this case we have MyStatefulBean -> MyStatefulHome -> MyStateful.
| As we define a RemoteHome, the MyStateful interface must extend the EJBObject?
Yes. Because Home interfaces must return local/remote interfaces, and local/remote must extend EJBLocalObject/EJBObject.
"emuckenhuber" wrote : 2) then we have 4.6.6 where they say: The interface must not extend the javax.ejb.EJBObject or javax.ejb.EJBLocalObject interface.
| Which more or less means that a business interface can't be a Session Bean's Local or Remote Interface?
Let's draw up some definitions first, because the wording in the spec is a little tricky.
* Business Interface - The EJB3 View, may be local or remote, and is denoted by the corresponding @Local and @Remote annotations.
* Remote Interface - The EJB2.x View, must extend from EJBObject, may only be obtained via the return of a create{METHOD} method of a Home interface (for SFSB) or the "create" method of a Home interface (for SLSB). See Spec 3.6.2.
So in regards to 4.6.6, they're talking only about *Business* interfaces, yes, saying that a business interface cannot also be a remote/local interface.
My solution to these tests is to make:
public interface MyStatefulRemote extends EJBObject{...}
|
| public interface MyStatefulRemoteBusiness{...}
|
| public interface MyStatefulRemoteHome extends EJBHome{
| public MyStatefulRemote create() throws CreateException, RemoteException;
| }
|
| @Stateful
| @RemoteHome(MyStatefulRemoteHome.class)
| @Remote(MyStatefulRemoteBusiness.class)
| public class MyStatefulBean implements MyStatefulRemoteBusiness{...}
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152529#4152529
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152529
17 years, 10 months
[Design of EJB 3.0] - Re: EJBTHREE-1062 and metadata
by emuckenhuber
Yeah i read that too - maybe that's why i'm confused :)
so let me rephrase my question:
1) In this case we have MyStatefulBean -> MyStatefulHome -> MyStateful.
As we define a RemoteHome, the MyStateful interface must extend the EJBObject?
2) then we have 4.6.6 where they say: The interface must not extend the javax.ejb.EJBObject or javax.ejb.EJBLocalObject interface.
Which more or less means that a business interface can't be a Session Bean's Local or Remote Interface?
The actual problem i have is - after adding the functionality from the ProxyFactoryHelper to metadata - it should be that MyStateful extends EJBObject as it would be set as Remote interface.
But then the @Remote business interface would also be the remote interface.
Just wanted to ask how this should be handled correctly, as i don't want to break stuff :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152497#4152497
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152497
17 years, 10 months