]
Mark Little reassigned JBTM-116:
--------------------------------
Assignee: Kevin Conner (was: Mark Little)
setting of default timeout logic broken in mbean
------------------------------------------------
Key: JBTM-116
URL:
http://jira.jboss.com/jira/browse/JBTM-116
Project: JBoss Transaction Manager
Issue Type: Task
Security Level: Public(Everyone can see)
Components: JTA Implementation
Affects Versions: 4.2.1
Reporter: Mark Little
Assigned To: Kevin Conner
Fix For: 4.2.2
The mbean code for setting the default timeout says:
public void setTransactionTimeout(int timeout) throws javax.transaction.SystemException
{
if (timeout > 0)
{
TxControl.setDefaultTimeout(timeout);
}
else
throw new javax.transaction.SystemException("Transaction Timeout <
0");
}
This means that it's not possible for anyone to provide a value of -1, which means:
transactions never timeout. Also, the if clause should say >= 0 if the else clause is
to be accurate.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: