package snippets.orb; import com.common.orb.Orb; import com.de22.orb.Address; import com.de22.orb.development.OrbClassLoader; import com.de22.orb.optional.*; import com.de22.orb.security.SslSecurityProvider; /** * Copyright Declarative Engineering LLC 2008
*/ public class ServerTest { /** * @param args */ public static void main(String[] args) { Orb.setOrbWrapper(new CommonOrbWrapper(new OrbClassLoader(), null, null)); Orb.bind(Orb.getProxy(new Data(), IData.class), "Data", null); try { Orb.openServerSocket("ServerSocket", new ServerSocketOptions(new Address("zeeri:8444"), new Address("zeeri:8444"), new SocketOptions(), null, 360000, 20000, new SslSecurityProvider("TLS", "./.keystore", "123456", "abcdefg"))); } catch(Throwable e) { e.printStackTrace(); } } }