import org.jboss.remoting.transport.local.LocalServerInvoker;
import org.jboss.remoting.transport.local.LocalClientInvoker;
LocalServerInvoker serverInvoker = new LocalServerInvoker();
serverInvoker.create();
serverInvoker.start();
LocalClientInvoker clientInvoker = new LocalClientInvoker();
clientInvoker.create();
clientInvoker.start();
<invoker-proxy-factory
code="org.jboss.remoting.transport.Connector"
timeout="5000"
server-invoker="new"
transport="socket"
alias="socket">
<attribute name="ServerInvokerClassName">org.jboss.remoting.transport.socket.SocketServerInvoker</attribute>
<attribute name="ClientConnectionPoolSize">100</attribute>
...
</invoker-proxy-factory>
import org.jboss.remoting.transport.socket.SocketClientInvoker;
import org.jboss.remoting.CompressionConfig;
SocketClientInvoker clientInvoker = new SocketClientInvoker();
clientInvoker.create();
clientInvoker.start();
CompressionConfig compressionConfig = new CompressionConfig();
compressionConfig.setCompressionType("gzip");
clientInvoker.setCompressionConfig(compressionConfig);