Skip to content

Commit

Permalink
Merge pull request #24702 from zistrong/7.0.11-bugfix
Browse files Browse the repository at this point in the history
fix cmtTimeoutInSeconds config, it can't take effect when set value 0 in admin UI.
  • Loading branch information
dmatej authored Dec 10, 2023
2 parents ae9c8aa + e32edab commit b2ba6ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public class EJBContainerTransactionManager {
TransactionService txnService = ejbContainerUtilImpl.getServices().getService(TransactionService.class,
ServerEnvironment.DEFAULT_INSTANCE_NAME);
int transactionTimeout = Integer.parseInt(txnService.getTimeoutInSeconds());
if (transactionTimeout != 0) {
if (transactionTimeout >= 0) {
cmtTimeoutInSeconds = transactionTimeout;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public interface TransactionService extends ConfigBeanProxy, PropertyBag, Config
* @return possible object is
* {@link String }
*/
@Attribute (defaultValue="0",dataType=Integer.class)
@Attribute (defaultValue="120",dataType=Integer.class)
public String getTimeoutInSeconds();

/**
Expand Down

0 comments on commit b2ba6ea

Please sign in to comment.