{
server.setIORAddress( CORRECT_HOST, WRONG_PORT );
server.addAlternateAddress( WRONG_HOST, CORRECT_PORT );
server.addAlternateAddress( WRONG_HOST_2, WRONG_PORT );
server.addAlternateAddress( WRONG_HOST_2, CORRECT_PORT );
Sample s = server.getObject();
testNumberOfIIOPProfiles(4, s);
testHostAndPortInIIOPProfile(s, 0, CORRECT_HOST, WRONG_PORT);
testHostAndPortInIIOPProfile(s, 1, WRONG_HOST, CORRECT_PORT);
testHostAndPortInIIOPProfile(s, 2, WRONG_HOST_2, WRONG_PORT);
testHostAndPortInIIOPProfile(s, 3, WRONG_HOST_2, CORRECT_PORT);
try
{
s.ping (33);
fail ("TRANSIENT or TIMEOUT exception expected");
}
catch (org.omg.CORBA.TRANSIENT ex)
{
// ok - unable to resolve the address