public void TearDownEnvironment() {
     if (m_test != null) {
         m_test.remove();
         m_test = null;
     }
     m_nameService = null;
     // unregister the channel            
     ChannelServices.UnregisterChannel(m_channel);
 }
Exemple #2
0
 public void TearDownEnvironment()
 {
     if (m_test != null)
     {
         m_test.remove();
         m_test = null;
     }
     m_nameService = null;
     // unregister the channel
     ChannelServices.UnregisterChannel(m_channel);
 }
        public void SetupEnvironment() {
            // register the channel
            m_channel = new IiopClientChannel();
            ChannelServices.RegisterChannel(m_channel, false);

            // access COS nameing service
            string nameserviceLoc = "corbaloc::localhost:3528/JBoss/Naming/root";
            m_nameService = (NamingContext)RemotingServices.Connect(typeof(NamingContext), nameserviceLoc);

            NameComponent[] name = new NameComponent[] { new NameComponent("IntegrationTest", ""), 
                                                         new NameComponent("testForwarder", "") };
            // get the reference to the test-home
            TestHomeFwd testhome = (TestHomeFwd) m_nameService.resolve(name);
            m_test = testhome.create();
        }
Exemple #4
0
        public void SetupEnvironment()
        {
            // register the channel
            m_channel = new IiopClientChannel();
            ChannelServices.RegisterChannel(m_channel, false);

            // access COS nameing service
            string nameserviceLoc = "corbaloc::localhost:3528/JBoss/Naming/root";

            m_nameService = (NamingContext)RemotingServices.Connect(typeof(NamingContext), nameserviceLoc);

            NameComponent[] name = new NameComponent[] { new NameComponent("IntegrationTest", ""),
                                                         new NameComponent("testForwarder", "") };
            // get the reference to the test-home
            TestHomeFwd testhome = (TestHomeFwd)m_nameService.resolve(name);

            m_test = testhome.create();
        }