File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes WebSphere class having http listen port value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "WebSphere class having http listen port value" Watch "WebSphere class having http listen port value" New topic
Author

WebSphere class having http listen port value

Krishnaa Kumar
Greenhorn

Joined: May 05, 2011
Posts: 25
Hi,

I need to know WebSphere's class which holds the WebSphere's http listen port value.
Can any one help me with this.

Its similar to WebLogic post
http://www.coderanch.com/t/536941/BEA-Weblogic/Class-holds-weblogic-port#2463378

-With Thanks,
Krishna.
Deepak Pant
Ranch Hand

Joined: Feb 13, 2004
Posts: 443
WebSphere creates a file called "AboutThisProfile.txt" under \IBM\WebSphere\AppServer\profiles\<profileName>\logs folder. This file contains
various port numbers. The one you are looking for is "HTTP transport port".

Administrative console port: xxxx
Administrative console secure port: xxxx
HTTP transport port: xxxx
HTTPS transport port: xxxx
Bootstrap port: xxxx
SOAP connector port: xxxx

Is this what you were looking for ?

Krishnaa Kumar
Greenhorn

Joined: May 05, 2011
Posts: 25
Hi deepak,

I want to find the http listen port, using reflection when the class(which holds port configuration) loads by class loader.


- With Thanks, Krishna.
Deepak Pant
Ranch Hand

Joined: Feb 13, 2004
Posts: 443
One option could be to use wsadmin programming classes to get the value from webcontainer - http port settings.
Krishnaa Kumar
Greenhorn

Joined: May 05, 2011
Posts: 25
Hi Deepak,

I looked into many "wsadmin programming classes" using decompiler. nothing seems to have http port settings.
Do you know any class that holds this information. if so, just share. it will be very much helpful for me.

With thanks, Krishna.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WebSphere class having http listen port value