[jboss-jira] [JBoss JIRA] Updated: (JBMESSAGING-922) JBossConnection::setExceptionListener needs to set ClassLoader

Clebert Suconic (JIRA) jira-events at lists.jboss.org
Wed Mar 14 14:50:32 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBMESSAGING-922?page=all ]

Clebert Suconic updated JBMESSAGING-922:
----------------------------------------

    JBoss Forum Reference: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=103989

> 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