Feature Requests item #567002, was opened at 2002-06-10 14:26
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376688&aid=567002&group_id=22866
Category: JBossMQ
Group: v2.4.x
Status: Open
Priority: 5
Submitted By: Howard Ungar (howardu)
Assigned to: Nobody/Anonymous (nobody)
Summary: UIL - Add support for NAT
Initial Comment:
The UILServerIL object currently connects based on the IP
address sent by the server. In environments where the
server and client are on different sides of a firewall with
Network Address Translation (NAT), this approach fails.
I have modified the createConnection() method to read the
servername from the InetAddress object sent by the server
and construct the IP address locally as follows:
protected void createConnection()
throws Exception {
// old way -> Socket socket = new Socket( addr, port );
String hostName = addr.getHostName();
InetAddress address = InetAddress.getByName
(hostName);
Socket socket = new Socket( address, port );
mSocket = new SocketMultiplexor( socket );
out = new ObjectOutputStream( new
BufferedOutputStream( mSocket.getOutputStream( 1 ) ) );
out.flush();
in = new ObjectInputStream( new BufferedInputStream(
mSocket.getInputStream( 1 ) ) );
}
I'm sure that there are situations where the old way is
desireable so this should be made a configuration option
through the UILServerILServiceMBean.
Please contact me to help with this implementation if
needed.
Howard
[EMAIL PROTECTED]
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376688&aid=567002&group_id=22866
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development