You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by radha_mit <Ra...@ivycomptech.com> on 2010/07/08 11:04:29 UTC
regarding ActiveMQ MemoryPersistence Adapter
The MemoryTransactionStore contains a rollback method that is called when
the broker is crashed or shutting down. The rollback method then removes
the transactionIds in the two concurrent HashMaps.
Actually why is it removing the transactions ? i tried commenting those
lines and i found no problem in activeMQ execution ?
Can any one tell the significance of that rollback method and what are the
consequences if the method body is uncommented ?
Thanks,
Radha
--
View this message in context: http://old.nabble.com/regarding-ActiveMQ-MemoryPersistence-Adapter-tp29103813p29103813.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: regarding ActiveMQ MemoryPersistence Adapter
Posted by radha_mit <Ra...@ivycomptech.com>.
in that case,
why we have both
inflightTransactions.remove(txid);
preparedTransactions.remove(txid); in the rollBack() method..
are the elements in inflight Transactions and prepared Transactions
completely different ?
Thanks,
Radha
--
View this message in context: http://old.nabble.com/regarding-ActiveMQ-MemoryPersistence-Adapter-tp29103813p29182912.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: regarding ActiveMQ MemoryPersistence Adapter
Posted by Gary Tully <ga...@gmail.com>.
any inflight work needs to be thrown away pending a commit. Only
prepared transactions should remain after a restart.
On 8 July 2010 10:04, radha_mit <Ra...@ivycomptech.com> wrote:
>
>
> The MemoryTransactionStore contains a rollback method that is called when
> the broker is crashed or shutting down. The rollback method then removes
> the transactionIds in the two concurrent HashMaps.
>
> Actually why is it removing the transactions ? i tried commenting those
> lines and i found no problem in activeMQ execution ?
>
> Can any one tell the significance of that rollback method and what are the
> consequences if the method body is uncommented ?
>
>
> Thanks,
> Radha
> --
> View this message in context: http://old.nabble.com/regarding-ActiveMQ-MemoryPersistence-Adapter-tp29103813p29103813.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
--
http://blog.garytully.com
Open Source Integration
http://fusesource.com
Re: regarding ActiveMQ MemoryPersistence Adapter
Posted by radha_mit <Ra...@ivycomptech.com>.
sorry, mistake in last line..
if the method body is commented ?
Thanks,
Radha
--
View this message in context: http://old.nabble.com/regarding-ActiveMQ-MemoryPersistence-Adapter-tp29103813p29103918.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.