12.2. Configure Server Instance as a Worker Node


Task: Configure Server Instance as a Worker Node

Complete this task to correctly configure your JBoss Enterprise Application Platform instance as a worker node for use with Microsoft Internet Information Services (IIS).
  1. Create a server profile for each worker node

    Make a copy of the default server profile you want to configure as a worker node, and rename it to default-01.
  2. Give each instance a unique name

    Edit the following line in the deploy\jbossweb.sar\server.xml file of each new worker instance:
    <Engine name="jboss.web" defaultHost="localhost">
    Add a unique jvmRoute value, as shown. This value is the identifier for this node in the cluster.
    For the default-01 server profile:
    <Engine name="jboss.web" defaultHost="localhost" jvmRoute="worker01">
    For the default-02 server profile:
    <Engine name="jboss.web" defaultHost="localhost" jvmRoute="worker02">
  3. Enable session handling

    Uncomment the following line in the deployers\jbossweb.deployer\META-INF\war-deployers-jboss-beans.xml file of each worker node:
    <property name="useJK">false</property>
    This property controls whether special session handling is used to coordinate with mod_jk and other connector variants. Set this property to true in both worker nodes:
    <property name="useJK">true</property>
  4. Start worker nodes

    Start each worker node in a separate command line interface. Ensure that each node is bound to a different IP address with the --host switch.
    JBOSS_EAP_DIST\bin\run.bat --host=127.0.0.1 -c default-01
    JBOSS_EAP_DIST\bin\run.bat --host=127.0.0.100 -c default
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.