You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by shoba <sh...@gmail.com> on 2008/02/15 10:06:02 UTC

ActiveMq Examples - EmbeddedBroker

Hi,
    I'm using ActiveMq from 2 weeks, when I'm running ant embedBroker in
activemq/examples folder, the activemq server is starting. but I'm unable to
close activemq server. I closed console in Eclipse. But activemq server is
running. All the examples in example folder are running. But
http://localhost:8161/admin is not starting. 
    From console when I'm running
   cd [activemq_install_dir] /bin activemq
it is giving the following error:
Unable to access jarfile D:\apache-activemq-5.0.0\bin\../bin/run.jar

Can anyone say me how can i shutdown ActiveMQ server and start from command
promt. I':-(m using windows 2000

-- 
View this message in context: http://www.nabble.com/ActiveMq-Examples---EmbeddedBroker-tp15496174s2354p15496174.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: ActiveMq Examples - EmbeddedBroker

Posted by ttmdev <jo...@ttmsolutions.com>.
The "[activemq_install_dir]/bin activemq" command will start a standalone
broker that, by default, uses the 
"[activemq_install_dir]/conf/activemq.xml" configuration file. You're most
likely getting the bind error because the default JMX management port (1099)
has been taken by another process on your machine. You can change the
default management port in the activemq.xml file as follows.

<managementContext>
 <managementContext connectorPort="1199"
jmxDomainName="org.apache.activemq"/>
</managementContext>   

Not sure what's going on with your other problem, but note that the
"EmbeddedBroker" example is supposed to just wait forever. 

Joe
www.ttmsolutions.com





shoba wrote:
> 
> Hi,
>     I'm using ActiveMq from 2 weeks, when I'm running ant embedBroker in
> activemq/examples folder, the activemq server is starting. but I'm unable
> to close activemq server. I closed console in Eclipse. But activemq server
> is running. All the examples in example folder are running. But
> http://localhost:8161/admin is not starting. 
>     From console when I'm running
>    cd [activemq_install_dir] /bin activemq
> it is giving the following error:
>  Transport Connector could not be registered in JMX: Failed to bind to
> server s
> ocket: tcp://localhost:61616 due to: java.net.BindException: Address
> already in
> use: JVM_Bind
> 
> Can anyone say me how can i shutdown ActiveMQ server and start from
> command promt. I':-(m using windows 2000
> 
> 

-- 
View this message in context: http://www.nabble.com/ActiveMq-Examples---EmbeddedBroker-tp15496174s2354p15502438.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: ActiveMq Examples - EmbeddedBroker

Posted by sidhik <si...@sigmainfo.net>.
JVM_Bind error is due to port config...
find out on cmd prompt thru  NETSATAT -a  ..
may be u get something



shoba wrote:
> 
> Hi,
>     I'm using ActiveMq from 2 weeks, when I'm running ant embedBroker in
> activemq/examples folder, the activemq server is starting. but I'm unable
> to close activemq server. I closed console in Eclipse. But activemq server
> is running. All the examples in example folder are running. But
> http://localhost:8161/admin is not starting. 
>     From console when I'm running
>    cd [activemq_install_dir] /bin activemq
> it is giving the following error:
>  Transport Connector could not be registered in JMX: Failed to bind to
> server s
> ocket: tcp://localhost:61616 due to: java.net.BindException: Address
> already in
> use: JVM_Bind
> 
> Can anyone say me how can i shutdown ActiveMQ server and start from
> command promt. I':-(m using windows 2000
> 
> 

-- 
View this message in context: http://www.nabble.com/ActiveMq-Examples---EmbeddedBroker-tp15496174s2354p15498683.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.