public JRMSTransportChannel(WireFormat wireFormat, URI remoteLocation) throws JMSException {
this(wireFormat);
try {
this.port = remoteLocation.getPort();
this.inetAddress = InetAddress.getByName(remoteLocation.getHost());
LRMPTransportProfile profile = new LRMPTransportProfile(inetAddress, port);
profile.setTTL((byte) 1);
profile.setOrdered(true);
this.socket = profile.createRMPacketSocket(TransportProfile.SEND_RECEIVE);
}
catch (Exception ioe) {
ioe.printStackTrace();
JMSException jmsEx = new JMSException("Initialization of JRMSTransportChannel failed: " + ioe);
jmsEx.setLinkedException(ioe);