org.alfresco.repo.avm.wf
Class AVMSubmitTransactionListener

java.lang.Object
  extended by org.alfresco.repo.transaction.TransactionListenerAdapter
      extended by org.alfresco.repo.avm.wf.AVMSubmitTransactionListener
All Implemented Interfaces:
TransactionListener

public class AVMSubmitTransactionListener
extends TransactionListenerAdapter

Gets callbacks at critical moments within a transaction (commit, rollback, etc.) to perform JMX update notifications to the virtualization server.


Constructor Summary
AVMSubmitTransactionListener()
           
 
Method Summary
 void afterCommit()
          Notify virtualization server that webapps in workflow sandbox are not longer needed, and possibly trigger a notification instrucing the virtualization server to reload staging and every virtual webapp that depends on it.
 void afterRollback()
          Handle failed transaction.
 
Methods inherited from class org.alfresco.repo.transaction.TransactionListenerAdapter
beforeCommit, beforeCompletion, flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AVMSubmitTransactionListener

public AVMSubmitTransactionListener()
Method Detail

afterCommit

public void afterCommit()
Notify virtualization server that webapps in workflow sandbox are not longer needed, and possibly trigger a notification instrucing the virtualization server to reload staging and every virtual webapp that depends on it.

Specified by:
afterCommit in interface TransactionListener
Overrides:
afterCommit in class TransactionListenerAdapter

afterRollback

public void afterRollback()
Handle failed transaction.

Specified by:
afterRollback in interface TransactionListener
Overrides:
afterRollback in class TransactionListenerAdapter


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.