1 23 24 package com.sun.enterprise.admin.server.core.mbean.config; 25 26 import javax.management.*; 28 29 import com.sun.enterprise.config.ConfigException; 31 import com.sun.enterprise.config.serverbeans.ServerTags; 32 33 34 import com.sun.enterprise.admin.server.core.mbean.meta.MBeanEasyConfig; 36 import com.sun.enterprise.admin.common.exception.MBeanConfigException; 37 import com.sun.enterprise.admin.common.constant.ConfigAttributeName; 38 import com.sun.enterprise.admin.common.ObjectNames; 39 40 public class ManagedTransactionService extends ConfigMBeanBase implements ConfigAttributeName.TransactionService 41 { 42 private static final String [][] MAPLIST = { 43 { kAutomaticTransactionRecovery, ATTRIBUTE + ServerTags.AUTOMATIC_RECOVERY}, 44 { kTransactionRecoveryTimeout, ATTRIBUTE + ServerTags.TIMEOUT_IN_SECONDS}, 45 { kTransactionLogDir, ATTRIBUTE + ServerTags.TX_LOG_DIR}, 46 { kHeuristicDecision, ATTRIBUTE + ServerTags.HEURISTIC_DECISION}, 47 { kKeypointInterval, ATTRIBUTE + ServerTags.KEYPOINT_INTERVAL}, 48 }; 51 52 private static final String [] ATTRIBUTES = { 53 kAutomaticTransactionRecovery + ", boolean, RW", 54 kTransactionRecoveryTimeout + ", int, RW", 55 kTransactionLogDir + ", String, RW", 56 kHeuristicDecision + ", String, RW", 57 kKeypointInterval + ", int, RW", 58 }; 61 62 private static final String [] OPERATIONS = null; 63 64 67 public ManagedTransactionService() throws MBeanConfigException 68 { 69 this.setDescriptions(MAPLIST, ATTRIBUTES, OPERATIONS); 70 } 71 72 public ManagedTransactionService(String instanceName) throws MBeanConfigException 73 { 74 this(); initialize(ObjectNames.kJtsComponent, new String []{instanceName}); 76 } 77 78 } 79 | Popular Tags |