"scott.stark(a)jboss.org" wrote : The annotations scanning happens at the post
class loader level in jbossas. Where is it happening in your new work?
|
Pre-real.
Obviously it must be after classloading and before real, so I chose pre-real, leaving some
classloader modifications for post-cl still open.
"scott.stark(a)jboss.org" wrote :
| The annotations scanning happening at the structure phase is duplicate that cannot be
reused later. It should be based on VFS/javassist usage to avoid introducing the
annotations into an incorrect class loader that cannot be determined during the structure
phase.
|
That's what I'm doing - VFS/javassist. ;-)
But like I said, structure phase is not the right place to do this, OSGi wise.
e.g. we want to scan for @Stateful, but java-ee.jar bundle is not yet installed - it will
only be pulled in by my apps javax.ejb.* import - so in structure phase we won't be
able to resolve any @Stateful annotation.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151836#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...