-
1. Re: Configuration of transaction
tomjenkinson Nov 29, 2012 8:20 AM (in response to ivanovan)Hi Andrew,
JBTM uses JBoss Logging now, so you should have all the logging facilities available that it provides.
That said, if you have log4j on your classpath and a log4j.xml file you should be good to go.
Tom
-
2. Re: Configuration of transaction
ivanovan Dec 6, 2012 2:44 AM (in response to tomjenkinson)But what about transaction question?
Is there any way to configure them in my case(see root message 2 and 3)
-
3. Re: Configuration of transaction
tomjenkinson Dec 6, 2012 6:02 AM (in response to ivanovan)Hi Andrew,
I think I answered question 2 (those parameters aren't used any more, its done via JBoss Logging).
I will try to test case 3 and let you know.
Tom
-
4. Re: Configuration of transaction
ivanovan Dec 6, 2012 6:11 AM (in response to tomjenkinson)Oh, sorry, ofcourse cases 1 and 3(not 2), my mistake. It will be great if you can give me any info on this cases.
-
5. Re: Configuration of transaction
tomjenkinson Dec 6, 2012 6:59 AM (in response to tomjenkinson)Hi Andrew,
I have verified that timeout works as normal on master. I used https://github.com/jbosstm/narayana/blob/master/ArjunaJTA/jta/tests/classes/com/hp/mwtests/ts/jta/timeout/SimpleTest.java (which uses https://github.com/jbosstm/narayana/blob/master/ArjunaJTA/jta/src/test/resources/jbossts-properties.xml)
I applied the attached patch to the test and just ran the single test in my ide, I will put back that "fail()" fix as it was erroneous to leave it out but it doesn't alter the result of the test with it in but I can't put back the change to the config as the rest of the tests would fail.
Tom
PS I have attached a second (alternative) patch that I might be able to put back directly as it does not require a change to the jbossts-properties.xml as I programmatically configure JBTM
PPS I guess your jbossts-properties.xml is not being picked up as the root cause of this, is it on the classpath and have you overriden its location with a system property?
-
timeout-test.patch.zip 750 bytes
-
6. Re: Configuration of transaction
ivanovan Dec 6, 2012 7:35 AM (in response to tomjenkinson)I put it like this
set JAVA_OPTS=%JAVA_OPTS% -Dcom.arjuna.ats.arjuna.common.propertiesFile=%ARJUNA_CONFIG%
And it's working because I've changed the Object Store folders.
I will try to find out whats happenning a bit later.
Now I've got a working example, so thank you very much!
-
7. Re: Configuration of transaction
tomjenkinson Dec 6, 2012 8:27 AM (in response to ivanovan)No problem!
Another thing you can try is -DCoordinatorEnvironmentBean.defaultTimeout=1