Jboss clustering guidelines
For Installing HCL® Campaign on Jboss cluster refer (HCL Campaign web application clustering).
Preparing the data sources
You will need to add/create JNDI in the same JBOSS domain which you are planning to use in cluster. Please follow below steps to create JNDI.
- Add required database modules in JBOSS. For example, oracle database -
jboss-cli.bat --connect --controller=JBOSS_DOMAIN_MASTER:MASTER_PORT -- commands="module add --name= oracle.jdbc --resources=<Database_Driver_Path\ojdbc8.jar> -- dependencies=javax.api,javax.transaction.api" - JNDI’s can be added by modifying domain.xml of both master and slave.
Deployment steps
In addition to the instructions in the deployment chapter (Deploying Campaign on JBoss Application Server), complete the following tasks:
- Launch JBOSS management console.
- Navigate to “Deployments" tab. Select the ServerGroup.
- Click on Add button under Deployments section
- A pop up will be shown, browse the application WAR/EAR and complete the deployment process.
Tomcat Clustering Guidelines
For Installing HCL Campaign on Tomcat cluster refer (HCL Campaign web application clustering).
For Deployment Steps, you can refer (Deploying Campaign on Tomcat Application Server)
Post deployment, JNDI name should be prefixed with "java:/comp/env/" for example: campaignPartition1DS should be mentioned as "java:/comp/env/campaignPartition1DS" while creating Campaign UA_SYSTEM_TABLE Data Source.
Configure a load Balancer like nginx for redirecting request to all the nodes of Tomcat cluster.