This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes How do i find the port number of a Resource installed on a machine ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "How do i find the port number of a Resource installed on a machine ?" Watch "How do i find the port number of a Resource installed on a machine ?" New topic
Author

How do i find the port number of a Resource installed on a machine ?

RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
Hello Ranchers +xperts

How do i find the port number of a Resource installed on a machine ?

For example how do i find the port number of a DataSource installed ??


If you want something you never had do something which you had never done
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
What exactly do you mean by "resource"? For a DataSource, the DB server is listening on a particular port, which you can find out wherever the DataSource is configured; if there's no port number listed, then the default port is used (which varies between databases; consult the DB's documentation).

What prompted this question?
RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
Ulf Dittmer wrote:
What prompted this question?


What propmted me is that i a trying to install RFHUtil for IBM MQ and it is asking the IP and port number on which MQ is installed.

But i don't know how to find the port number.
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19719
    
  10

Then your best bet is to ask the person who installed that instance of MQ.

If that was you, and you don't know what port you specified, then you probably didn't specify the port and MQ is listening at its default port.
RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
Ya its me who installed and i found its listening to its default port 1414
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How do i find the port number of a Resource installed on a machine ?
 
It's not a secret anymore!