-
1. Re: JBoss 7 - EJB Remote Transaction Timeout
wdfink Jan 24, 2014 3:38 PM (in response to sbourguiba)Looks like the is a TODO within the code, not sure whether it's related.
Is it possible to set the Tx timeout fo both sides with an annotation?
-
2. Re: JBoss 7 - EJB Remote Transaction Timeout
sbourguiba Jan 24, 2014 3:49 PM (in response to wdfink)I don't know, this is my question, i want to change the default timeout value.
-
3. Re: JBoss 7 - EJB Remote Transaction Timeout
wdfink Jan 24, 2014 4:11 PM (in response to sbourguiba)I recommenc to not set such high default timeout.
You might run into issues, i.e. if a action which is normally short takes longer all resources are blocked and you run out of DB connections or GC issues.
To change the timeout for a few methods you can use the ejb-jar.xml.
-
4. Re: JBoss 7 - EJB Remote Transaction Timeout
sbourguiba Jan 25, 2014 5:19 AM (in response to wdfink)thanks for the reply
But the problem is that every remote ejb call, a transaction is created with 300 seconds timeout and if i define a timeout for some methods in the file jboss-ejb3.xml the problem persist because the ejb remote transaction will be canceled after 300 seconds, so the global transaction will be rollbacked at the commit phase (the two-phase commit strategy)
-
5. Re: JBoss 7 - EJB Remote Transaction Timeout
jaikiran Jan 24, 2014 11:10 PM (in response to sbourguiba)That TODO in code needs to be fixed/implemented. Please file a WFLY JIRA with the details and please point to that code in the description of that JIRA
-
6. Re: JBoss 7 - EJB Remote Transaction Timeout
sbourguiba Jan 25, 2014 5:21 AM (in response to jaikiran)Ok, thanks
-
7. Re: JBoss 7 - EJB Remote Transaction Timeout
mp911de Jan 27, 2014 6:01 AM (in response to sbourguiba)You know about the config (standalone.xml/domain.xml)?
<subsystem xmlns="urn:jboss:domain:transactions:1.3">
<core-environment>
<process-id>
<uuid/>
</process-id>
</core-environment>
<recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
<coordinator-environment default-timeout="300"/>
</subsystem>
-
8. Re: JBoss 7 - EJB Remote Transaction Timeout
wdfink Jan 27, 2014 10:22 AM (in response to mp911de)Marc, it is more that a server-to-server invocation will not respect the timeout, looks like there is a hardcoded 300ms default in this case.