Skip to content

Commit

Permalink
fix cmtTimeoutInSeconds config, it can't take effect when set value 0…
Browse files Browse the repository at this point in the history
… in admin UI.
  • Loading branch information
zistrong committed Dec 7, 2023
1 parent 719a66b commit e32edab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
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 e32edab

Please sign in to comment.