Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable instances for Apache ActiveMQ running on Ubuntu?

Tags:

I've just installed ActiveMQ using apt-get on Ubuntu 11.10.

Every time I try to start it I can see on in the console:

No instances found at /etc/activemq/instances-enabled.

To start the service I'm using service command as follow:

$ sudo service activemq start

It looks to me like approach to configuring Apache2 on Ubuntu, but I've failed to find any documentation on how to manage instances. Perhaps anyone here could give me a hand?

like image 593
Tomasz Błachowicz Avatar asked Jan 16 '12 13:01

Tomasz Błachowicz


People also ask

How do I know if ActiveMQ broker is running?

The following will also work to check if ActiveMQ is up and running: try { ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(url); // set transport listener so that active MQ start is notified.

How do I access the ActiveMQ Web console?

To access the management console use a browser and go to the URL http://localhost:8161/console. A login screen will be presented, if your broker is secure, you will need to use a user with admin role, if it is unsecure simply enter any user/password.


2 Answers

The install has a default configuration in /etc/activemq/instances-available/main

So typing this in the console should work.

sudo ln -s /etc/activemq/instances-available/main /etc/activemq/instances-enabled/main
like image 163
Sidharth Avatar answered Sep 28 '22 05:09

Sidharth


If you install activemq package on Ubuntu 12.04 (not sure about 11.10) some other helpful documentation available here:

/usr/share/doc/activemq/README.Debian

Sample configs (for example with web console and stomp API) here:

/usr/share/doc/activemq/examples/
like image 31
maizy Avatar answered Sep 28 '22 05:09

maizy