[jboss-jira] [JBoss JIRA] Commented: (JBMESSAGING-922) JBossConnection::setExceptionListener needs to set ClassLoader
Clebert Suconic (JIRA)
jira-events at lists.jboss.org
Mon Mar 19 11:01:34 EDT 2007
[ http://jira.jboss.com/jira/browse/JBMESSAGING-922?page=comments#action_12356559 ]
Clebert Suconic commented on JBMESSAGING-922:
---------------------------------------------
ejb3mdb test was already failing for this. no need for a new testcase.
Besides... this usage was completely eliminated.
> 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
More information about the jboss-jira
mailing list