1
package org.jboss.remoting.samples.transporter.multiple.server;
3
import org.jboss.remoting.samples.transporter.multiple.CustomerProcessorImpl;
4
import org.jboss.remoting.samples.transporter.multiple.AccountProcessorImpl;
5
import org.jboss.remoting.samples.transporter.multiple.CustomerProcessor;
6
import org.jboss.remoting.samples.transporter.multiple.AccountProcessor;
7
import org.jboss.remoting.transporter.TransporterServer;
11
* @author <a href="mailto:tom.elrod@jboss.com">Tom Elrod</a>
15
private String locatorURI = "socket://localhost:5400";
16
private TransporterServer server = null;
18
public void start() throws Exception
20
server = TransporterServer.createTransporterServer(locatorURI, new CustomerProcessorImpl(), CustomerProcessor.class.getName());
21
server.addHandler(new AccountProcessorImpl(), AccountProcessor.class.getName());
32
public static void main(String[] args)
34
Server server = new Server();
39
Thread.currentThread().sleep(60000);