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 44 45 public class Pramati30ConnectionService extends AbstractConnectionService 46 47 { 48 49 54 55 protected void createMBeanServer() 56 57 throws Exception 58 59 { 60 61 System.setProperty("jmx.serial.form", "1.0"); 62 63 64 65 Hashtable props = new Hashtable (); 66 67 props.put(Context.INITIAL_CONTEXT_FACTORY, this.profile.getProperty(ConnectionMetaData.FACTORY)); 68 69 props.put(Context.URL_PKG_PREFIXES, this.profile.getProperty(ConnectionMetaData.PACKAGES)); 70 71 props.put(Context.PROVIDER_URL, this.profile.getProperty(ConnectionMetaData.URL)); 72 73 props.put(Context.SECURITY_PRINCIPAL, this.profile.getProperty(ConnectionMetaData.PRINCIPAL)); 74 75 props.put(Context.SECURITY_CREDENTIALS, this.profile.getProperty(ConnectionMetaData.CREDENTIALS)); 76 77 78 79 81 83 85 87 89 91 93 } 94 95 } 96 97 | Popular Tags |