954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Programmatically finding IP, Port & Server State of Weblogic

Hi,
I am using Weblogic 9.2 MP3, I want to find Programmatically IP, Port & Server State of Weblogic. Let say there is a page named index.jsp deployed on domain mydomain. So after weblogic is RUNNING, I can access that page by hitting URL http://1.2.3.4:9876/mydomain/index.jsp .

I want the IP(1.2.3.4), Port(9876) & State(RUNNING) of weblogic at run time. Basically I want to hit a URL of jsp deployed through java code rather than from browser and don't want hardcoding.

Thanks in advance.

rdhiravani
Light Poster
37 posts since Jan 2007
Reputation Points: 10
Solved Threads: 2
 

Use an implicit object of jsp page - request
ServletRequest

__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 

I have a plain java class, so i won't have any request come in.

rdhiravani
Light Poster
37 posts since Jan 2007
Reputation Points: 10
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You