[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Scoped Kernels

adrian@jboss.org do-not-reply at jboss.com
Mon Feb 12 09:17:15 EST 2007


anonymous wrote : 
  | 2) We register an "alias" in the global scope.
  | 
  | I think (2) will be a lot simpler to implement.
  | 
  | Essentially, the alias would just act as a "proxy/delegate" to the real
  | context in the scoped kernel. The root kernel would recognise the
  | context as a proxy and not try to manage it.
  | 

The reason why the alias would be simpler to implement
is because managing the scoped bean from the global scope introduces
all sorts of problems with ordering that are likely to lead to deadlocks.
e.g. Having to take locks in the scoped kernel from the global scope 
to look at the state, etc.

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

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



More information about the jboss-dev-forums mailing list