This content has been marked as final.
Show 10 replies
-
1. Re: Backing the Web Beans Application scope
alesj Feb 23, 2009 2:05 PM (in response to pmuir)"pete.muir@jboss.org" wrote:
Ales and I had some ideas for how to back it:- non-serializable JNDI
- EJB3.1 singleton
- MBean server.
Thoughts?
As discussed now, I think a plain MC bean is enough.
Perhaps we could only push it into own scoped Kernel/Controller? - non-serializable JNDI
-
2. Re: Backing the Web Beans Application scope
alesj Feb 23, 2009 2:24 PM (in response to pmuir)"alesj" wrote:
"pete.muir@jboss.org" wrote:
Ales and I had some ideas for how to back it:- non-serializable JNDI
- EJB3.1 singleton
- MBean server.
Thoughts?
As discussed now, I think a plain MC bean is enough.
Perhaps we could only push it into own scoped Kernel/Controller?
I mean, for running in MC controller envs.
But I think we could already provide some other impls,
e.g. like the one's stated above.
Other could have their own 'MC',
in GF's case it would be a BundleActivator + boot service.
(I guess we could provide this one as well, for proof of concept) - non-serializable JNDI
-
3. Re: Backing the Web Beans Application scope
pmuir Feb 23, 2009 2:30 PM (in response to pmuir)"alesj" wrote:
Other could have their own 'MC',
in GF's case it would be a BundleActivator + boot service.
(I guess we could provide this one as well, for proof of concept)
The GF guys are happy to do the GF work I think :-) as long as we provide SPIs they like. This was the only real issue that came up during my meeting with them... -
4. Re: Backing the Web Beans Application scope
pmuir Feb 25, 2009 6:54 AM (in response to pmuir)Notes for Ales to implement:
Before calling Bootstrap.initialize() you need to call Application.setApplicationContext(BeanStore beanStore);
BeanStore is https://svn.jboss.org/repos/webbeans/ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/context/api/BeanStore.java - basically a Map<Conextual<?>, Object> with the get, put and remove generified.
Do you want to be notified on shutdown? -
-
6. Re: Backing the Web Beans Application scope
alesj Feb 25, 2009 9:51 AM (in response to pmuir)"pete.muir@jboss.org" wrote:
Before calling Bootstrap.initialize() you need to call Application.setApplicationContext(BeanStore beanStore);
Where do I get this BeanStore from? -
7. Re: Backing the Web Beans Application scope
pmuir Feb 25, 2009 9:58 AM (in response to pmuir)"alesj" wrote:
"pete.muir@jboss.org" wrote:
Do you want to be notified on shutdown?
How is shutdown triggered?
On undeploy of the application. -
8. Re: Backing the Web Beans Application scope
pmuir Feb 25, 2009 10:02 AM (in response to pmuir)"alesj" wrote:
"pete.muir@jboss.org" wrote:
Before calling Bootstrap.initialize() you need to call Application.setApplicationContext(BeanStore beanStore);
Where do I get this BeanStore from?
Good point. I'll write a helper for this in SPI. -
9. Re: Backing the Web Beans Application scope
alesj Feb 25, 2009 10:04 AM (in response to pmuir)"pete.muir@jboss.org" wrote:
"alesj" wrote:
"pete.muir@jboss.org" wrote:
Do you want to be notified on shutdown?
How is shutdown triggered?
On undeploy of the application.
MC will undeploy the bean.
So you should tell me if there is some stop/destroy thing you wanna call. -
10. Re: Backing the Web Beans Application scope
pmuir Feb 25, 2009 1:52 PM (in response to pmuir)So you should tell me if there is some stop/destroy thing you wanna call.
Good point, I was thinking upside down.
I guess we have a bootstrap.shutdown() method. This is semantically a bit odd, but I think it is easier than having some other interface. I'll add that tomorrow/later.