25.02.2015 Views

Introducing Spring Framework

Introducing Spring Framework

Introducing Spring Framework

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Stop ActiveMQ<br />

Appendix A ■ Installing Tools<br />

To stop ActiveMQ, press Ctrl+C on the DOS terminal where the ActiveMQ is running or you can execute the following<br />

command in another DOS terminal:<br />

C:\> cd “C:\Tools\apache-activemq-5.9.0\bin\win64”<br />

C:\Tools\apache-activemq-5.9.0\bin\win64> activemq stop<br />

■ ■Note You can add the ActiveMQ as a service; just execute the InstallService.bat in the C:\Tools\apacheactivemq-5.9.0\bin\win64<br />

path. For more information, take a look at http://activemq.apache.org.<br />

Accessing the ActiveMQ Web Console Hawtio<br />

To access hawtio, you need the ActiveMQ running. Open a browser and go to http://localhost:8161/hawtio. It will<br />

prompt you for some credentials, such as username and password. The username and password are admin/admin.<br />

This console will be needed in some chapters, so you must have it ready.<br />

■ ■Note It is important to note that version activemq-5.9.1 doesn’t include the HAWTIO web console, which you will be<br />

using in Chapter 11. So it’s important to use this version: 5.9.0.<br />

Installing Apache ActiveMQ on a Mac OS X<br />

Remember that you need to have Homebrew installed. To install Apache ActiveMQ, execute the following command:<br />

$ brew update<br />

$ brew install activemq<br />

To verify that the installation was successful, execute the following command:<br />

$ activemq --version<br />

INFO: Using default configuration<br />

ACTIVEMQ_HOME: /usr/local/Cellar/activemq/5.9.1/libexec<br />

ACTIVEMQ_BASE: /usr/local/Cellar/activemq/5.9.1/libexec<br />

ACTIVEMQ_CONF: /usr/local/Cellar/activemq/5.9.1/libexec/conf<br />

ACTIVEMQ_DATA: /usr/local/Cellar/activemq/5.9.1/libexec/data<br />

ActiveMQ 5.9.1<br />

For help or more information please see http://activemq.apache.org.<br />

Start ActiveMQ<br />

To start ActiveMQ broker, execute the following command:<br />

$ activemq start<br />

313

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!