| |
PDF
|
ICEfaces Online Reference |
Cluster-enabled JMS Configuration
Figure 3 below illustrates the deployment architecture for a clustered ICEfaces application. In order for the Asynchronous HTTP Server to communicate with multiple application servers, it is necessary to configure JMS across the cluster. It is also necessary to add an additional JMS topic to support cluster-enabled, server-initiated rendering.
Configuration of JMS is application server-specific. Specific configurations for various applications servers are provided below:
Note: The current release of ICEfaces EE has been tested against clustered JBoss Application Servers only. Future releases of ICEfaces EE will include additional application servers.
For JBoss, the high-availability JMS is used and must be configured following these steps:
The file [jboss-install-dir]/server/all/deploy-hasingleton/jms/jbossmq-destinations-service.xml on each node of the cluster must be modified to include the ICEfaces topics "icefaces.contextEventTopic", "icefaces.responseTopic" and "icefaces.renderTopic". See Configuring the Application Server for specifics on adding the first two topics. The renderTopic is added with the following:
<mbean code="org.jboss.mq.server.jmx.Topic" name="jboss.mq.destination:service=Topic,name=icefaces.renderTopic"> <depends optional-attribute-name="DestinationManager"> jboss.mq:service=DestinationManager </depends> <depends optional-attribute-name="SecurityManager"> jboss.mq:service=SecurityManager </depends> <attribute name="SecurityConf"> <security> <role name="guest" read="true" write="true" create="true"/> </security> </attribute> </mbean>To ensure the correct properties are used, the following must be added to the web.xml for the ICEfaces application, and the Asynchronous HTTP Server:
<context-param> <param-name>com.icesoft.util.net.jms.properties</param-name> <param-value>jboss_ha.properties</param-value> </context-param>This section explains how to set up a clustered deployment of WebLogic Servers. It includes steps for configuring the cluster, JMS and the WebLogic Server plug-in for the Apache HTTP Server, as well as steps for configuring and deploying the Asynchronous HTTP Server and an ICEfaces application. The following discussion relates to a clean installation of WebLogic, and represents a simplified process for configuring WebLogic for clustered deployments of ICEfaces applications. Additional deployment-specific issues may exist. Refer to your WebLogic documentation for additional information.
This example cluster consists of two Managed Servers and an Administration Server, which itself is not part of the cluster, as shown in the table below.
192.168.1.100 Admin Administration Server 192.168.1.101 Managed1 Managed Server 192.168.1.102 Managed2 Managed ServerEnsure that you have WebLogic Server installed on each machine. Refer to your WebLogic documentation for additional information.
The following three procedures describe the steps to create a cluster formed by Managed1_Server and Managed2_Server and administered by Admin_Server.
1. On machine Admin go to [bea-home-dir]/weblogic81/common/bin and start the BEA WebLogic Configuration Wizard using:
./config.sh -mode=console1. On machine Admin go to
[bea-home-dir]/user_projects/domains/ICEfaces_Cluster_Domain and start the server using:
./startWebLogic.sh2. Using an Internet browser, go to http://192.168.1.100:7001/console and login as the user specified in step 10 of Configuring the Individual Servers.
12. Enter Managed1_Server for Name, select Managed1 for Machine and ICEfaces_Cluster for Cluster. Enter 192.168.1.101 in the Listen Address field, and then click Create.
1. On machine Managed1 go to
[bea-home-dir]/user_projects/domains/ICEfaces_Cluster_Domain and start the server using the following command:
./startManagedWebLogic.sh Managed1_Server http://192.168.1.100:70015. On the right panel, verify that all servers (Admin_Server, Managed1_Server and Managed2_Server) have their state RUNNING.
The following steps describe how to create a ConnectionFactory that is available throughout the cluster and an ICEfaces_JMS_Server deployed on Managed1 servicing the JMS topics, icefaces.contextEventTopic, icefaces.renderTopic, and icefaces.responseTopic, throughout the cluster.
12. Enter icefaces.contextEventTopic for Name and JNDI Name. Select False for Enable Store, and then click Create.
The following is a simple solution for installing and configuring WebLogic's plug-in for the Apache HTTP Server and a cluster of WebLogic Servers.
Refer to WebLogic Server 8.1 Service Pack 4 on page 15 for the initial installation and configuration of WebLogic's plug-in for the Apache HTTP Server.
<IfModule mod_weblogic.c> WebLogicHost host WebLogicPort port </IfModule><IfModule mod_weblogic.c> WebLogicCluster 192.168.1.101:7001,192.168.1.102:7001 </IfModule>The following steps describe how to deploy the Asynchronous HTTP Server on Managed1_Server only. (The Asynchronous HTTP Server cannot be deployed on multiple machines within the cluster.)
1. Specify the JMS Configuration properties by modifying the following context parameter in the web.xml file and repackage the async-http-server.war:
<context-param> <param-name>com.icesoft.util.net.jms.properties</param-name> <param-value>weblogic.properties</param-value> </context-param>Refer to Configuring the Application Server on page 8 for the configuration of an ICEfaces Application using the Asynchronous HTTP Server.
|
Copyright 2005-2006. ICEsoft Technologies, Inc. http://www.icesoft.com |