Wednesday Jun 25, 2014

Retrieving WebLogic Server Name and Port in ADF Application by Red Samurai

It could come handy to know how to get WebLogic server name and port in ADF application. Particularly this could be useful, when running ADF application in the cluster and there is a requirement to track WebLogic node with application session instance running. Usually it is not enough to get server host, as cluster node is accessed through load balancer and server IP is different, not the one visible in HTTP session.

There is a way to get WebLogic server name and port. Server name could be retrieved from system property - weblogic.Name. Port could be retrieved from MBean - see the code below:
Server name and port is retrieved and displayed correctly for my test environment - DefaultServer and 7101 Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Mix Forum Wiki

Search

Archives
« June 2014 »
SunMonTueWedThuFriSat
1
2
6
7
8
11
12
13
14
15
16
17
18
19
20
21
22
23
26
     
       
Today