activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j0llyr0g3r <>
Subject Re: Determine what ports ActiveMQ is listening on
Date Thu, 18 Oct 2007 14:01:50 GMT


if activemq is the only java-process running, you could execute something

 netstat -tulpen | grep -i java

with the processbuilder from within java and then parse the corresponding
output (i assume you are using Linux) for the listed ports.

jmorri wrote:
> Hi,
> I'm trying to write a Java program that will list the protocols and ports
> that ActiveMQ is currently listening on.  I've got it set up to examine
> the log file and look for the "Listening for connection" lines, and
> extract it from that.  That works okay, but it doesn't seem like the most
> elegant solution (for example, if the activemq process is started and
> output isn't redirected to a log file).
> Is there a process that can be run to determine that information, or maybe
> even an API call I could use?
> I'm sorry if this is too basic of a question to ask here,
> Thanks.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message