English 中文(简体)
websphere server stop causes inflight ejb transactions to rollback
原标题:

I observe errors as below when Websphere server instance is stopped from admin console

Caused by: javax.ejb.TransactionRolledbackLocalException: ; nested exception is: javax.transaction.TransactionRolledbackException: Transaction is ended due to timeout at com.ibm.ws.Transaction.JTA.TranManagerImpl.completeTxTimeout(TranManagerImpl.java:576) at com.ibm.ws.Transaction.JTA.TranManagerSet.completeTxTimeout(TranManagerSet.java:625)

These are inflight txns during server stop. Increasing the timeouts from "Application servers->server->Transaction Service" does not seem to help.

Is this to do with the server quiesce timeouts? if yes is there a way to configure those.

Also the rollbacks are not observed when I "terminate" the server from the Admin Console, only observed when I "stop" the server.

Any ideas to debug this issue would be great.

问题回答

What you want is probably Deployment for transactional high availability. The describe method is the only product feature that is available for finishing those transactions without getting actual errors.

What happens for you is that the WebSphere Application server gives each container some time to shut down. After the shutdown timeouts it will use force. The transactions get rolled back. Well, you could also change the heurestic policy to for instance COMMIT. That depends on whether it is better for your application that everything in the transaction gets lost or whether only the rest of the transaction gets lost.





相关问题
Webspehere 6.1 and JNDI for something other than a Datasource

I was wondering: how does one go about configuring WAS if they want to store some confidential information that is not datasource, JMS or Mail related? I m looking more for an adhoc JNDI resource (a ...

申 诉 Server的服务器名称或管道和港口

我们愿确定并展示一个服务器和港口,即 Java的应用程序正在运行,它落后于一个代理网络服务器。 这意味着使ServerName()返回服务器......。

Signing SOAP messages using WSS4J

We need to sign a SOAP message with a certificate in Websphere 7. Currently we are looking at using WSS4J from Apache and are approaching this in the java code itself. Does anyone have any ...

JSP files in external directory

In my project, we allow customer to write customer specific logic in JSP pages and attach to our product. Right now after deploying .ear file customer copy the custom files under /WebContent/custom ...

RAD Websphere - EAR not picking up latest jar

I am using RAD 7.0. My web application works with a jar(contains the backend code for our application) which undergoes frequent changes. But whenever I replace the jar in the WebInf/lib folder of the ...

热门标签