Initial commit from SVN.
This commit is contained in:
27
Snippets/src/snippets/orb/ServerTest.java
Normal file
27
Snippets/src/snippets/orb/ServerTest.java
Normal file
@@ -0,0 +1,27 @@
|
||||
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<p>
|
||||
*/
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user