KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejtools > jmx > browser > model > connector > Pramati30ConnectionService


1 /*
2
3  * EJTools, the Enterprise Java Tools
4
5  *
6
7  * Distributable under LGPL license.
8
9  * See terms of license at www.gnu.org.
10
11  */

12
13 package org.ejtools.jmx.browser.model.connector;
14
15
16
17 import java.util.Hashtable JavaDoc;
18
19
20
21 import javax.naming.Context JavaDoc;
22
23
24
25 import org.ejtools.jmx.browser.model.service.ConnectionMetaData;
26
27
28
29
30
31 /**
32
33  * As described <a HREF="http://www.pramati.com/docstore/1230006/help/mbeanbrowser/working.htm">here</a>
34
35  *
36
37  * @author letiembl
38
39  * @created 4 septembre 2002
40
41  * @version $Revision: 1.6 $
42
43  */

44
45 public class Pramati30ConnectionService extends AbstractConnectionService
46
47 {
48
49    /**
50
51     * @exception Exception Description of the Exception
52
53     */

54
55    protected void createMBeanServer()
56
57       throws Exception JavaDoc
58
59    {
60
61       System.setProperty("jmx.serial.form", "1.0");
62
63
64
65       Hashtable JavaDoc props = new Hashtable JavaDoc();
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 // Stand by
80

81 //
82

83 // InitialContext context = new InitialContext(props);
84

85 // ClientConnector connector = (ClientConnector) context.lookup(this.profile.getProperty(ConnectionMetaData.CONTEXT));
86

87 //
88

89 // MBeanServer mbeanServer = MBeanServerProxy.createMBeanProxy(connector);
90

91 // this.setMBeanServer(mbeanServer);
92

93    }
94
95 }
96
97
Popular Tags