"adrian(a)jboss.org" wrote : "scott.stark(a)jboss.org" wrote : Who is
going to have to configure the aspect, the bean deployment, or would this be setup by the
deployer in the absence an override config? (not sure you can detect that other than a
flag saying not to install the aspect).
| |
|
| There is no aspect. The classloader will set automatically from the configured
classloader.
| For beans created from the deployment layer, it will be the classloader of the
deployment
| unless there is a specific one in the xml.
We should probably raise a feature request for such an aspect for runtime invocations?
i.e. write an aspect that introduces a KernelControllerContextAware onto the POJO and
steals the classloader from it during deployment.
Then it sets the context classloader to that classloader during invocations on the
object.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123283#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...