[
http://jira.jboss.com/jira/browse/JBMESSAGING-922?page=all ]
Ovidiu Feodorov reopened JBMESSAGING-922:
-----------------------------------------
Clebert, please add a test (smoke test) that fails before applying the fix and passes
after that.
JBossConnection::setExceptionListener needs to set ClassLoader
--------------------------------------------------------------
Key: JBMESSAGING-922
URL:
http://jira.jboss.com/jira/browse/JBMESSAGING-922
Project: JBoss Messaging
Issue Type: Bug
Affects Versions: 1.2.0.GA
Reporter: Clebert Suconic
Assigned To: Clebert Suconic
Fix For: 1.2.0.SP1
a fix would be:
public void setExceptionListener(ExceptionListener listener) throws JMSException
{
ThreadContextClassLoaderChanger tccc = new ThreadContextClassLoaderChanger();
try
{
tccc.set(getClass().getClassLoader());
delegate.setExceptionListener(listener);
}
finally
{
tccc.restore();
}
}
or having AOP considering our scoping condition and changing their classLoader rules.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira