public static void Main(String[] args) { // register the channel int port = 8087; IiopChannel chan = new IiopChannel(port); ChannelServices.RegisterChannel(chan, false); TestServiceImpl test = new TestServiceImpl(); string objectURI = "test"; RemotingServices.Marshal(test, objectURI); Console.WriteLine("server running"); Console.ReadLine(); }
public static void Main(String[] args) { // register the channel int port = 8087; IDictionary properties = new Hashtable(); properties[IiopServerChannel.PORT_KEY] = port; properties[IiopChannel.BIDIR_KEY] = true; IiopChannel chan = new IiopChannel(properties); ChannelServices.RegisterChannel(chan, false); TestServiceImpl test = new TestServiceImpl(); string objectURI = "test"; RemotingServices.Marshal(test, objectURI); Console.WriteLine("server running"); Thread.Sleep(Timeout.Infinite); }
public static void Main(String[] args) { // Some tests on client side like TestIsACall require marshalling to be done using concrete type and not // exposed interface: omg.org.CORBA.OrbServices.GetSingleton().SerializerFactoryConfig.ObjSerializationUseConcreteType = true; // register the channel int port = 8087; IiopChannel chan = new IiopChannel(port); ChannelServices.RegisterChannel(chan, false); TestServiceImpl test = new TestServiceImpl(); string objectURI = "test"; RemotingServices.Marshal(test, objectURI); Console.WriteLine("server running"); Thread.Sleep(Timeout.Infinite); }