[jboss-dev-forums] [Design the new POJO MicroContainer] - scoped contexts example
tom.baeyens@jboss.com
do-not-reply at jboss.com
Wed Mar 21 08:12:39 EDT 2007
moving mail discussion to forum:
anonymous wrote : On Wed, 2007-03-21 at 12:42 +0100, Ales Justin wrote:
| > > If you could direct me to your (IoC) work, use cases, ... I will have a
| > > look to see more precisely what you may need. And we can discuss this
| > > further (at J1, ...).
|
| Tom wants the scoped kernels so he can setup factories at different
| levels (in particular "runtime scopes" for his jbpm processes).
|
| e.g. Not Tom's exact example, but probably more familiar to
| you from a JavaEE/Seam point of view (note the runtime scopes
| web session and seam conversation).
|
| "Application Scope"
| DataSource - default for the application
|
| "Web Session Scope"
| DataSource -> *override* for the session
|
| "Seam Conversation Scope"
| DataSource -> *override* for the conversation
|
| There's a bit more too it than what I describe, but
| this is the basic mechanism to the solution.
|
| If you want to discuss this further with me, I'll be
| happy to do it in the forums.
| -- xxxxxxxxxxxxxxxxxxxxxxxxxxxx Adrian Brock Chief Scientist JBoss, a division of Red Hat xxxxxxxxxxxxxxxxxxxxxxxxxxxx
actually, i have now an implementation with scopes that i'm pretty much satisfied with.
Adrian, this might be interesting for you to have a look at before you start implementing/adding the real thing in the MC.
it's in module lightning of jbpm cvs repo.
src/org/jbpm/ctx --> context and scopes
src/org/jbpm/wire --> wiring
regards, tom.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030208#4030208
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030208
More information about the jboss-dev-forums
mailing list