TransportFactory factory = new TransportFactory(properties);
Transport proxy = factory.createTransport();
Sender serviceFactory = proxy.getSender("BAR", false);
String aString = "Hello from Java Land";
Receiver endpoint = proxy.createReceiver(1, null);
serviceFactory.send(endpoint.getReplyTo(), (short) 0, 0,
aString.getBytes(), aString.getBytes().length, 0, 0, 0,
"X_OCTET", "");
Message receive = endpoint.receive(0);