Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WebSphere class having http listen port value

 
Krishnaa Kumar
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One option could be to use wsadmin programming classes to get the value from webcontainer - http port settings.
 
Krishnaa Kumar
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic