-
1. Re: XTSService MBean sets coordinatorURL to localhost in 4.3
adinn Jul 16, 2008 5:06 AM (in response to ruthbd)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
ruthbd Jul 16, 2008 10:55 AM (in response to ruthbd)"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 Jul 16, 2008 11:47 AM (in response to ruthbd)
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
ruthbd Jul 16, 2008 12:04 PM (in response to ruthbd)"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.