1 23 24 package com.sun.ejb.ee.sfsb.store; 25 26 import java.util.logging.Logger ; 27 import java.util.logging.Level ; 28 import com.sun.logging.LogDomains; 29 30 import com.sun.ejb.spi.sfsb.store.SFSBTxStoreManager; 31 import com.sun.ejb.spi.sfsb.store.SFSBStoreManager; 32 import com.sun.ejb.spi.sfsb.store.SFSBBeanState; 33 import com.sun.ejb.spi.sfsb.store.SFSBStoreManagerException; 34 35 41 public class HaTxStoreManager 42 implements SFSBTxStoreManager 43 { 44 45 protected static Logger _logger = 46 LogDomains.getLogger(LogDomains.EJB_LOGGER); 47 48 public HaTxStoreManager() { 49 } 50 51 public void checkpointSave(SFSBBeanState[] beanStates) 52 throws SFSBStoreManagerException 53 { 54 if ((beanStates == null) || (beanStates.length == 0)) { 55 _logger.log(Level.WARNING, "No BeanStates to checkpoint."); 56 return; 57 } 58 59 SFSBStoreManager manager = beanStates[0].getSFSBStoreManager(); 60 61 try { 62 ((SFSBTxStoreManager) manager).checkpointSave(beanStates); 63 } catch (SFSBStoreManagerException smEx) { 64 _logger.log(Level.WARNING, 65 "StoreManagerException during checkpointSave", smEx); 66 } catch (Throwable th) { 67 _logger.log(Level.WARNING, 68 "Exception during checkpointSave", th); 69 } 70 } 71 72 } 73 | Popular Tags |