[jboss-dev-forums] [JBoss AS7 Development] - Re: Issues with modular classloading
Brian Stansberry
do-not-reply at jboss.com
Mon Oct 11 14:52:09 EDT 2010
Brian Stansberry [http://community.jboss.org/people/bstansberry%40jboss.com] created the discussion
"Re: Issues with modular classloading"
To view the discussion, visit: http://community.jboss.org/message/565915#565915
--------------------------------------------------------------
I'm pretty sure doing the lookup during the start task is incorrect. The way this works now, for a given managed bean type T, the ManagedBeanService<T> would have an instance of each @Resource bean injected as part of start(). Thereafter whenever ManagedBeanContainer.createInstance() is invoked, the same bean instance would be injected into the newly created bean. AIUI what should happen is createInstance() should result in a new naming lookup for each @Resource bean, which in turn would trigger creation of a new instance of that bean.
I've opened https://jira.jboss.org/browse/JBAS-8513 https://jira.jboss.org/browse/JBAS-8513
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/565915#565915]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101011/a7943f2c/attachment.html
More information about the jboss-dev-forums
mailing list