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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...