[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: XA Recovery on Journal...

timfox do-not-reply at jboss.com
Mon Sep 8 10:14:52 EDT 2008


"adrian at jboss.org" wrote : 
  | Returning "read only" would be the most optimal thing to do.
  | You then don't record the prepare in the journal.
  | 
  | However, once you do that the non-peristent message should be removed from memory 
  | or anywhere else you reference it.
  | 

The problem with returning RD_ONLY as I see it, is that if I have a tx branch with a bunch of non persistent sends, and return RD_ONLY then commit will never get called, so those messages won't ever get routed in memory to its subscribers (since routing occurs on commit)

One other possibility is to return OK, but not actually persist the branch if it only contains non persistent operations, then if we subsequently get a commit or rollback for that branch on recovery, we can return OK to the commit/rollback even though we can't find the branch. The tx mgr then thinks the transaction was resolved ok, even though the non persistent messages were lost (which is fine anyway).



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4175052#4175052

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4175052



More information about the jboss-dev-forums mailing list