4 Replies Latest reply on Jul 16, 2008 12:04 PM by ruthbd

    XTSService MBean sets coordinatorURL to localhost in 4.3.0GA

      I am running JBoss AS with the jbossxts.sar from JBossTS 4.3.0GA and it seems that the XTSService MBean is hard-coded to set com.arjuna.mw.wst.coordinatorURL to

      http://localhost:8080/jbossxts/soap/ActivationCoordinator.

      This doesn't seem to respect if JBoss AS is started with a different IP, for instance when multiple JBoss AS instances are running on the same box.

      In my local testing configuration, I have two JBoss AS instances, one running on 127.0.0.2 and another running on 127.0.0.3, with an HTTP proxy running on 127.0.0.1 (to monitor WS messages).

      Is there a place where this is supposed to be configured? The comment associated with the lines indicates that the servlet in jbossxts.sar is also supposed to set it, but if its looking at the System property, then any configuration would be overridden already, right?

      Thanks,
      Brice

        • 1. Re: XTSService MBean sets coordinatorURL to localhost in 4.3
          adinn

          I assume that you are using the sar in the AS 5.0.Beta4 app server. This limitation is documented in the INSTALL file in the ArjunaJTS directory.

          The hard wiring of the URL in the XTSService code is required to deal with a race condition during XTS startup. The servlet code is supposed to set the URL using a value configured in the sar build.xml. However, the XTSService startup code cannot rely upon the AS to have initialised the servlet before it gets called. As you surmised, it overrides any value configured in the sar build.xml when it writes the system property.

          This has been fixed in the JBossTS 4.4 release where the XTS services host/port and remote coordinator host/port can be configured i) from the sar build command line, ii) in the sar build.xml or iii) in the wstx.xml configuration file.

          If you want to reset the coordinatorURL in 4.3 then you will have to reset the hard-wired value in XTSService.java and rebuld the sar.

          • 2. Re: XTSService MBean sets coordinatorURL to localhost in 4.3

             

            "adinn" wrote:
            I assume that you are using the sar in the AS 5.0.Beta4 app server.


            Actually, no. We're using the 4.3.0.GA .sar (built from src) in JBoss AS 4.3.0 EAP.

            I'll go ahead and modify that code so on startup it uses a more useful value!

            Thanks.

            • 3. Re: XTSService MBean sets coordinatorURL to localhost in 4.3
              adinn

               


              Actually, no. We're using the 4.3.0.GA .sar (built from src) in JBoss AS 4.3.0 EAP.


              Hmm, that's not exactly an 'expected' configuration. Still, if it floats your boat you might as well keep paddling.


              I'll go ahead and modify that code so on startup it uses a more useful value!


              Well, that ought to do what you want. I'll be interested to hear if the rest of the sar startup is still ok on AS 4.3.

              • 4. Re: XTSService MBean sets coordinatorURL to localhost in 4.3

                 

                "adinn" wrote:
                "ruthbd" wrote:

                Actually, no. We're using the 4.3.0.GA .sar (built from src) in JBoss AS 4.3.0 EAP.


                Hmm, that's not exactly an 'expected' configuration. Still, if it floats your boat you might as well keep paddling.

                Well, we were working with JBoss TS 4.2.3_SP5, but were having difficulties externalizing the dependencies from the .ear (trying to bundle our own .sar) with classloaders, so moved over to 4.3.0GA. So far, so good.

                "adinn" wrote:

                "ruthbd" wrote:

                I'll go ahead and modify that code so on startup it uses a more useful value!


                Well, that ought to do what you want. I'll be interested to hear if the rest of the sar startup is still ok on AS 4.3.


                So far, so good. Will let you know when I finish testing.