Set preferred listening address in weblogic 11g

I have a WebLogic 11g domain with 1 admin server and 4 managed servers running on two machines. Each computer has 3 IP addresses, but only one of these addresses is considered by another machine. Each machine works with a node manager, which seems to interact very well with itself and the admin server. Although when the managed server is started on the second computer, it cannot contact the administrator server because it uses the wrong IP address. It seems that when you start weblogic, it maps itself to all IP addresses, but selects the wrong one as the first, that is, by default. That is why managed servers receive incorrect information from the node manager.

Is there a way to set the preferred listening address in weblogic 11g, but still allow it to listen to all the other addresses? How does weblogic get a list of IP addresses? Is their order OS dependent?

0
linux networking dns redhat weblogic11g
source share
2 answers

Does this help answer the question? I believe that if you play with scripts in the / etc / sysconfig file, you will affect the boot order and therefore the order of listing. I must admit, I do not have an RH box to confirm this suspicion.

+2
source share

Weblogic uses the NetworkInterface.getNetworkInterfaces () method and its own logic to set the order of listening addresses. This logic changes from 10.3.2 to 10.3.4.

The corresponding code is in the getAllAddresses method of the weblogic.server.channels.AddressUtils $ AddressMaker class in weblogic.jar

You can check the order with a simple test:

import java.net.*; import weblogic.server.channels.*; public class TestIP_WLS { public static void main(String args[]) throws UnknownHostException { System.out.println("=== AddressUtils.getIPAny()"); InetAddress addrs[] = AddressUtils.getIPAny(); for (InetAddress addr : addrs) { System.out.println("*** " + addr); } } } 
+1
source share

All Articles