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.