[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Can the transaction manager retry commit or rollback?
mark.little@jboss.com
do-not-reply at jboss.com
Mon Sep 18 07:44:14 EDT 2006
"adrian at jboss.org" wrote : "timfox" wrote :
| | If I don't remove the instance then I get a memory leak.
| |
|
| You only have a memory leak if the number grows large.
| Which you can give a warning about anyway.
| if (map.size() > 100)
| log.warn("Your TM is probably broken!");
|
| The usual solution is to move the transaction to an "in doubt" state
| after a configurable period of time. e.g. 1 hour
| or if you have to recover after a failure.
|
It should definitely try to optimise for the non-failure case. However, it sounds like you're implementing a transaction manager here, so my next question would be: why?
Why can't you just use the one that is available in whatever the deployed environment happens to be?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972269#3972269
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972269
More information about the jboss-dev-forums
mailing list