[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: JBMICROCONT-330 - Preconfigured MDR and scopes
alesj
do-not-reply at jboss.com
Mon Aug 11 07:14:09 EDT 2008
"adrian at jboss.org" wrote :
| 1) ScopingOverridingTestCase
|
| This is failing because of the problem I suspected when taling to Kabir
| about the issue that led to finding JBMICROCONT-330
| i.e. a scoped controller context is sharing the same metadata
| as one that should not be scoped.
|
How did this ever worked? :-)
Or what changed that 'broke' this?
I remember adding WORK scope to handle this duplicate issue.
Looking at the code, I don't see how that helped,
since it's the other two scopes that are 'interesting'; CLASS and INSTANCE,
which were always the same.
I don't see a good way to solve this,
since although scoped, beans should still share the same metadata,
if the key matches, e.g. CLASS scope on the same class.
Perhaps we should change what value we keep at INSTANCE scope.
e.g. the stuff we already discussed, adding ID to ControllerContext,
which is unique, and pass that as INSTANCE value.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169840#4169840
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169840
More information about the jboss-dev-forums
mailing list