1 2 24 package com.sun.enterprise.resource; 25 26 import java.util.*; 27 import java.util.logging.*; 28 29 import javax.transaction.*; 30 import javax.transaction.xa.*; 31 32 import com.sun.logging.*; 33 import com.sun.enterprise.*; 34 import com.sun.enterprise.log.Log; 35 36 42 public class NoTxResourceManagerImpl implements ResourceManager { 43 44 45 static Logger _logger = null; 46 static { 47 _logger = LogDomains.getLogger(LogDomains.RSR_LOGGER); 48 } 49 50 55 public Transaction getTransaction() throws PoolingException{ 56 return null; 57 } 58 59 64 public Object getComponent(){ 65 return null; 66 } 67 68 75 public void enlistResource(ResourceHandle h) throws PoolingException{ 76 if (_logger.isLoggable( Level.FINE ) ) { 77 _logger.fine( "NoTxResourceManagerImpl :: enlistResource called"); 78 } 79 } 80 81 89 public void registerResource(ResourceHandle handle) 90 throws PoolingException 91 { 92 if (_logger.isLoggable( Level.FINE ) ) { 93 _logger.fine( "NoTxResourceManagerImpl :: registerResource called"); 94 } 95 } 96 97 102 public void rollBackTransaction() { 103 if (_logger.isLoggable(Level.FINE)) { 104 _logger.fine("rollBackTransaction called in NoTxResourceManagerImpl"); 105 } 106 } 107 108 118 public void delistResource(ResourceHandle resource, int xaresFlag) { 119 if (_logger.isLoggable( Level.FINE ) ) { 120 _logger.fine( "NoTxResourceManagerImpl :: delistResource called"); 121 } 122 } 123 124 134 public void unregisterResource(ResourceHandle resource, int xaresFlag) { 135 if (_logger.isLoggable( Level.FINE ) ) { 136 _logger.fine( "NoTxResourceManagerImpl :: unregisterResource called"); 137 } 138 } 139 } 140 | Popular Tags |