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 import com.sun.enterprise.config.serverbeans.ServerXPathHelper; 33 34 import com.sun.enterprise.admin.common.ObjectNames; 36 import com.sun.enterprise.admin.common.exception.MBeanConfigException; 37 import com.sun.enterprise.admin.common.constant.ConfigAttributeName; 38 39 45 public class ManagedJDBCResource extends ConfigMBeanBase implements ConfigAttributeName.JDBCResource 46 { 47 50 private static final String [][] MAPLIST = { 51 {kJndiName , ATTRIBUTE + ServerTags.JNDI_NAME}, 52 {kPoolName , ATTRIBUTE + ServerTags.POOL_NAME}, 53 {kDescription , ATTRIBUTE + PSEUDO_ATTR_DESCRIPTION}, 55 }; 56 59 private static final String [] ATTRIBUTES = { 60 kJndiName + ", String, R", 61 kPoolName + ", String, RW", 62 kDescription + ", String, RW", 64 }; 65 66 69 private static final String [] OPERATIONS = null; 70 71 72 75 public ManagedJDBCResource() throws MBeanConfigException 76 { 77 this.setDescriptions(MAPLIST, ATTRIBUTES, OPERATIONS); 78 } 79 80 85 public ManagedJDBCResource(String instanceName, String jndiName) throws MBeanConfigException 86 { 87 this(); initialize(ObjectNames.kJdbcResourceType, new String []{instanceName, jndiName}); 89 } 90 91 } 92 | Popular Tags |