I assume that server B is the one with 2 IP addresses you originally described?
If that is the case, then what you are trying to do is, depending on your network setup, either impossible or way beyond the scope of glassfish.
In general, it is impossible to control the routing of a TCP/IP connection from server A to server B. For example, you don't have to do this when you connect to google.com do you? The hops en route are beyond your control and non-deterministic.
If the entire network between server A and server B is under your control then you could probably do it, but it is a network routing problem, and nothing to do with GF.
[Message sent by forum member 'matterbury' (matterbury_at_abinitio.com)]
http://forums.java.net/jive/thread.jspa?messageID=362978