Installation guide
a different IP address with the -b switch.
[user@workstation jboss-eap-5.1]$ ./jboss-as/bin/run.sh -b 127.0.0.1 -c
default-01
[user@workstation jboss-eap-5.1]$ ./jboss-as/bin/run.sh -b 127.0.0.100 -c
default-02
16.3. Initial clustering configuration
Task: Configure Re quired Element s
Complete this task to configure the basic elements required for clustering using Sun Java Web Server
(SJWS) and NSAPI.
Prerequisit es
Task: Configure a JBoss Enterprise Application Platform Worker Node
Native zip archive extracted to /tmp/connectors/jboss-ep-native-5.1/. This path is referred to
as NATIVE in this procedure.
The directory /tmp/connectors is used as the storage location for logs, properties files, and NSAPI
locks.
SJWS is installed in one of the locations specified in the SJWS file path abbreviation in Section 1, “File
Name Conventions”.
1. Disable servlet mappings
Under Built In Servlet Mappings in the SJWS/PROFILE/config/default-web.xml file, disable the
mappings for the following servlets, by commenting them out as shown:
default
invoker
jsp
<!-- ==================== Built In Servlet Mappings ===================== -
->
<!-- The servlet mappings for the built in servlets defined above. -->
<!-- The mapping for the default servlet -->
<!--servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping-->
<!-- The mapping for the invoker servlet -->
<!--servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping-->
<!-- The mapping for the JSP servlet -->
<!--servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping-->
2. Load the re quired modules and properties
Append the following lines to the SJWS/PROFILE/config/magnus.conf file:
Init fn="load-modules" funcs="jk_init,jk_service"
shlib="NATIVE/lib/nsapi_redirector.so" shlib_flags="(global|now)"
Init fn="jk_init" worker_file="/tmp/connectors/workers.properties"
log_level="debug" log_file="/tmp/connectors/nsapi.log"
shm_file="/tmp/connectors/jk_shm"
These lines define the location of the nsapi_redirector.so module used by the jk_init and
jk_service functions, and the location of the workers.properties file, which defines the
worker nodes and their attributes.
Note
The lib directory in the NATIVE/lib/nsapi_redirector.so path applies only to 32-bit
machines. On 64-bit machines, this directory is called lib64.
62 Chapter 16. Configuring the NSAPI connector on Solaris