This is some Bug on AOP
If fixing ClientAOPStackLoader like this:
public synchronized void load(ConnectionFactoryEndpoint delegate) throws
Exception
| {
| if (loaded)
| {
| return;
| }
|
| ClassLoader loaderOriginal =
Thread.currentThread().getContextClassLoader();
|
| try
| {
| // This was done because of some weird behavior of AOP &
classLoading
| // http://jira.jboss.org/jira/browse/JBMESSAGING-980
|
Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
|
| byte[] clientAOPStack = delegate.getClientAOPStack();
|
| new JmsClientAspectXMLLoader().deployXML(clientAOPStack);
|
| loaded = true;
| }
| finally
| {
| Thread.currentThread().setContextClassLoader(loaderOriginal);
| }
| }
|
It works without any problems.
I have changed the MDBExample to be a scoped EAR. I'm committing this on the
trunk now...
Tim... should we create a SP/branch for this?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051104#4051104
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051104
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user