How do I disable clustering in JBoss EAP 5's "production" or "all" configuration?

Solution Verified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5

Issue

  • How do you disable clustering on an existing 'production' or 'all' configuration to slim the server?
  • How do I remove remove clustering from EAP 5?
  • I have a customized Jboss version (clustred) for a market. Coud you please help me to remove the clustering feature.

Resolution

If you want a system without clustering, it is generally better to start with the 'default' configuration and add what is required, rather than trying to remove clustering from the 'production' or 'all' configuration.

  1. Remove

    • farm/
    • deploy-hasingleton/
    • deploy/cluster/
  2. In deploy/messaging/*-persistence-service.xml, change Clustered to false:

     <attribute name="Clustered>false</attribute>
    

    and remove

     <depends optional-attribute-name="ChannelFactoryName">jboss.jgroups:service=ChannelFactory</depends>
    
  3. In conf/bootstrap/profile.xml, replace

     <bean name="BootstrapProfileFactory" class="org.jboss.system.server.profileservice.StaticClusteredProfileFactory">
    

    with

     <bean name="BootstrapProfileFactory" class="org.jboss.system.server.profileservice.repository.StaticProfileFactory">
    

    and remove the "farmURIs" property a few lines below that.

  4. Replace deploy/httpha-invoker.sar with http-invoker.sar from the default profile

  5. In the deployers/clustering-deployer-jboss-beans.xml, comment out WebAppClusteringDependencyDeployer.

In SOA-P, if you are removing clustering, you will need to take a few additional steps.

  1. Copy the server/default/deploy/jbpm.esb/hibernate.cfg.xml to server/<production|all>/deploy/jbpm.esb/hibernate.cfg.xml

  2. Remove server/<production|all>/deploy/riftsaw* and cp -R server/default/deploy/riftsaw* server/<production|all>/deploy/

Components

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.