1 12 13 package org.ejtools.jmx.browser.model.connector; 14 15 16 17 import java.util.Hashtable ; 18 19 20 21 import javax.naming.Context ; 22 23 24 25 import org.ejtools.jmx.browser.model.service.ConnectionMetaData; 26 27 28 29 30 31 40 41 public class TMX4J21ConnectionService extends AbstractConnectionService 42 43 { 44 45 50 51 protected void createMBeanServer() 52 53 throws Exception 54 55 { 56 57 System.setProperty("jmx.serial.form", "1.0"); 58 59 60 61 Hashtable props = new Hashtable (); 62 63 props.put(Context.INITIAL_CONTEXT_FACTORY, this.profile.getProperty(ConnectionMetaData.FACTORY)); 64 65 props.put(Context.URL_PKG_PREFIXES, this.profile.getProperty(ConnectionMetaData.PACKAGES)); 66 67 props.put(Context.PROVIDER_URL, this.profile.getProperty(ConnectionMetaData.URL)); 68 69 props.put(Context.SECURITY_PRINCIPAL, this.profile.getProperty(ConnectionMetaData.PRINCIPAL)); 70 71 props.put(Context.SECURITY_CREDENTIALS, this.profile.getProperty(ConnectionMetaData.CREDENTIALS)); 72 73 74 75 77 79 81 83 85 87 89 } 90 91 } 92 93 | Popular Tags |