Configure Shared File System Master Slave for ActiveMQ
You must manually
configure the Shared File System Master Slave if you are not using
the JDBC (Database) Master Slave configuration option to store FIFO
data for ActiveMQ.
Note: Configuring FIFO messaging in a cluster for
ActiveMQ is a prerequisite to configure the Shared File System Master
Slave for ActiveMQ. For information on configuring FIFO messaging
in a cluster, see ‘Cluster Configuration ’.
To configure shared file system master slave for ActiveMQ:
- In the activemq.xml file, comment out the following section:
XML comments consist of the symbols, '<!--' to open the comment and '-->' to close the comment.
<!-- Database Storage Option -->
<!-- This section has been commented.
<persistenceAdapter> <jdbcPersistenceAdapter dataSource="#fifo-ds" useDatabaseLock="true"> <statements> <statements tablePrefix="FIFO_"/> </statements> </jdbcPersistenceAdapter> </persistenceAdapter>
-->
- Uncomment the following section by removing the symbols
'<!--' and '-->'.
<!-- File system Storage Option -->
<persistenceAdapter> <journaledJDBC dataDirectory="/sharedFileSystem/broker"/> </persistenceAdapter>
- Edit the dataDirectory parameter to point to the location
of the shared data directory to be used. This data directory must
point to the same physical data location for all ActiveMQ instances
in the network. For information on warnings about shared file system choices as a result of locking limitations, see ‘Shared File System Assumptions and Limitations ’.
- Restart each ActiveMQ node when you reconfigure it.