示例#1
0
        public void SetUp()
        {
            _server = MBeanServerFactory.CreateMBeanServer();
             _bean = new OpenDynamic();
             ObjectName name = new ObjectName("Tests:key=value");
             _server.RegisterMBean(_bean, name);
             Uri serviceUrl = GetUri();

             _connectorServer = GetConnectorServerFactory().NewNetMXConnectorServer(serviceUrl, _server);
             _connectorServer.Start();
             _connector = GetConnectorFactory().Connect(serviceUrl, null);
             _remoteServer = _connector.MBeanServerConnection;
        }
示例#2
0
        public void SetUp()
        {
            _server = MBeanServerFactory.CreateMBeanServer();
            _bean   = new OpenDynamic();
            ObjectName name = new ObjectName("Tests:key=value");

            _server.RegisterMBean(_bean, name);
            Uri serviceUrl = GetUri();

            _connectorServer = GetConnectorServerFactory().NewNetMXConnectorServer(serviceUrl, _server);
            _connectorServer.Start();
            _connector    = GetConnectorFactory().Connect(serviceUrl, null);
            _remoteServer = _connector.MBeanServerConnection;
        }