String hostAndPort = (args.length > 1) ? args[1]
: "localhost.lshift.net:8000";
URL serverUrl = new URL("http://" + hostAndPort + "/reversehttp");
String label = "javasub" + new Random().nextInt(100000);
String containerDomain = label + "." + hostAndPort;
ServiceContainer container = new ServiceContainer(containerDomain);
Address targetAddress = new Address("queue", containerDomain);
container.bindName(targetAddress, new Sub(targetAddress, Address
.parse(sourceStr)));
HttpServer httpd = new ReverseHttpServer(label, serverUrl,
container);
httpd.serve();
} catch (Exception e) {