History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: AMQ-997
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Hiram Chirino
Reporter: Hiram Chirino
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ActiveMQ

Use the ACTIVEMQ_BASE environment variable to support running multiple broker instances from he same activemq install

Created: 19/Oct/06 04:20 PM   Updated: 19/Oct/06 04:27 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 4.1.0

Time Tracking:
Not Specified


 Description  « Hide
The activemq startup shell scripts are allready using / find the ACTIVEMQ_HOME which is where AcitiveMQ has been installed. Currently, you can only run one instance of the broker per ActiveMQ installation directory. We should support running multiple broker instances using that same ACTIVEMQ_HOME. All the per broker instance variable data should be relative to a new ACTIVEMQ_BASE enviroment variable.

By default the ACTIVEMQ_BASE == ACTIVEMQ_HOME so that sarting up the default activemq instance continues to behave as it allways has.

Createing a new per instance directory, as admin should only have to do:

export ACTIVEMQ_BASE=/path/to/new/directory
mkdir -p ${ACTIVEMQ_BASE}
cp -R ${ACTIVEMQ_HOME}/conf ${ACTIVEMQ_BASE}

customize the ${ACTIVEMQ_BASE}/conf/activemq.xml file

And to run the new instance:

export ACTIVEMQ_BASE=/path/to/new/directory
${ACTIVEMQ_HOME}/bin/activemq


 All   Comments   Work Log   Change History   Subversion Commits   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Hiram Chirino - 19/Oct/06 04:27 PM
Folks sometimes need to add jar files to the ActiveMQ classpath to add a database driver for example. it is usually added the the ${ACTIVEMQ_HOME}/lib directory, but to support cases where admins do not want users modifying the ActiveMQ install directory. We should also add any jars in the ${ACTIVEMQ_BASE}/lib and ${ACTIVEMQ_BASE}/lib/optional directories to the ActiveMQ classpath.

Hiram Chirino - 19/Oct/06 04:27 PM
implemented.