3 Replies Latest reply on Dec 15, 2008 4:11 AM by ataylor

    Upgrading to JBoss 5.0

    catman1958

      In our use of 4.2 we use an instance of JMSServerInterceptorSupport to detect when Clients unsubscribe or close their connection to Message Topics. With the change over to JBoss Messaging in 5.0 in JBoss AS 5, this functionality is no longer there. What methodology would we use to perform the same function?

      Not being able to do this, prevents us from upgrading to the latest release.

        • 1. Re: Upgrading to JBoss 5.0
          clebert.suconic

          You could probably tinker with aop-message-client.xml and add your aspect into that. You could change that in a property on messaging-service.xml.

          • 2. Re: Upgrading to JBoss 5.0
            catman1958

            What class/method would we cut? Could you show an example?

            • 3. Re: Upgrading to JBoss 5.0
              ataylor

              You probably need to do something like add an interceptor to the following aspect.

              <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate->createConnectionDelegate(..))">
               <advice name="handleCreateConnectionDelegate" aspect="org.jboss.jms.client.container.StateCreationAspect"/>
               </bind>


              The aop docs should help you with what you can and can't do.