Start ActiveMQ server in already existing port

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Start ActiveMQ server in already existing port

Ramesh Rocky
Hi,
I want to start the ActiveMQ server via process using C#.Now I have  doubt , how to conform the ActiveMQ server is started?When start the Server in already exist(Active Connection) port what will be the result?

Thanks & RegardsRamesh    
Reply | Threaded
Open this post in threaded view
|

Re: Start ActiveMQ server in already existing port

Tim Bain
If you try to start a broker that uses a port that's already in use, the
broker will fail to start.  You'll see errors in the logs, and the process
won't be running.

Didn't we just give you three ways to detect if the broker is already
running?

Also, I think the standard start script won't let you start the broker more
than once.  If the broker is already running and was started by your user,
the start script will exit with a message to the console saying ActiveMQ is
already running.  So this should only be a concern if another user started
the broker or if a non-ActiveMQ process is using the port.

Also, fir this question, it's super-easy for you to just try it yourself
and see what the behavior is; why are you emailing us instead of just doing
it and seeing for yourself?
On Jan 9, 2015 2:46 AM, "Ramesh Rocky" <[hidden email]> wrote:

> Hi,
> I want to start the ActiveMQ server via process using C#.Now I have  doubt
> , how to conform the ActiveMQ server is started?When start the Server in
> already exist(Active Connection) port what will be the result?
>
> Thanks & RegardsRamesh
Reply | Threaded
Open this post in threaded view
|

Re: Start ActiveMQ server in already existing port

artnaseef
In reply to this post by Ramesh Rocky
Can the broker be started separately?  Trying to start it from a C# process must be tricky!