Questo contenuto non è disponibile nella lingua selezionata.
2.7. Clustering JBoss BRMS with Jackrabbit
JBoss Enterprise BRMS can be configured to run in a JBoss Enterprise Application Platform cluster, providing high availability and failover, with each JBoss BRMS node in the cluster accessing the repository via a load balancer proxy which distributes incoming requests between the cluster nodes.
Procedure 2.5. Setting up Clustering with Jackrabbit
- Set up a JBoss Enterprise Application Platform cluster, refer to the JBoss Enterprise Application Platform 5 Clustering Guide which is located in the Administration and Configuration Guide.
- Set up a load balancer, refer to the JBoss Enterprise Application Platform 5 HTTP Connectors Load Balancing Guide.
- Deploy a copy of jboss-brms.war to each node of the application server cluster
$JBOSS_HOME/server/nodeX/deploy/ - The Default configuration uses embedded databases that are not suitable or supported for production environments. Before deploying into a production environment this configuration must be changed to a supported database. Please refer to the other sections in this chapter for configuration instructions.
- Each node in the cluster must have an individual workspace, version, and search index configured in the
repository.xmlfile. Generate therepository.xmlfor the required database by logging in to the JBoss Enterprise BRMS user interface and selecting. - Copy the
repository.xmlfile to the repository location specified in thejboss-brms.war/WEB-INF/components.xmlin each node of the cluster. - Each node in the cluster must have a unique ID, which is set in each node's copy of the
repository.xmlfile. For instance:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Add the
<distributable/>element as a child element of theweb-appelement to thejboss-brms.war/WEB-INF/web.xmlfile. - Verify the Cluster Nodes are working by logging into the JBoss Enterprise BRMS user interface. Examine the terminal output to confirm which node is handling the session. Shut down that node, after a short interval another node in the cluster should take over the session.
For further information about clustering with Jackrabbit, refer to http://wiki.apache.org/jackrabbit/Clustering