[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 13:13:32 EDT 2007


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

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

    Workaround Description: 
scope your application accordingly to our documentation.

ejb3mdb would fail as it's not scoped.
                Workaround: [Workaround Exists]

> 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: Ovidiu Feodorov
>             Fix For: 1.2.1.CR1
>
>
> 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