Standard TCP Transport

The so-called Standard TCP transport uses standard Java sockets to implement a TCP transport layer. This transport is considered legacy and the NIO transport should be used instead.

Exporting a Server

You use SocketServerExporter to export a server over this transport, as follows:

SocketServerExporter exporter = new SocketServerExporter();
Hello helloServer = exporter.export(new HelloImpl());

The above exports the HelloImpl instance as a server. The stub that is returned by the export() method can then be bound to Ubik's JNDI, as such:

Context context = JNDIContextBuilder.newInstance().domain("myDomain").build();
context.bind("hello", helloServer);