• Post Reply Bookmark Topic Watch Topic
  • New Topic

To find bootstrap port number of server  RSS feed

 
Prasad Thakur
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can a find bootstrap port number of a server. I am using websphere server. I would like to find this dynamically using java code.

Thanks
 
Scott Selikoff
author
Bartender
Posts: 4093
21
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know that you can.

Port information can vary on WebSphere (this is definitely a question for the WebSphere forum), so I'd recommend keeping this information in a properties file that you manually keep up to date (or build when the server is started in jacl) rather than trying to dynamically determine it. After all, how often is this likely to change?
 
Scott Selikoff
author
Bartender
Posts: 4093
21
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually I take that back, you can look it up using JNDI Lookup... check out:

http://www.webagesolutions.com/knowledgebase/waskb/waskb014/index.html

I'd still wonder why you'd need this to change dynamically. Seems like something that shouldn't change much. Plus a JNDI lookup can be more expensive than looking it up from a properties file.
 
ak pillai
author
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should look in your websphere admin console for end points or your deployment scripts like jython, *.ini files.
[ March 23, 2006: Message edited by: ak pillai ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!