Application Server: Parameterized Web Server Cluster

From Resin 4.0 Wiki

(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Config}} {{WebServer}} {{Cookbook}} === resin.xml === <resin xmlns="<nowiki>http://caucho.com/ns/resin</nowiki>" xmlns:resin="urn:java:com.caucho.resin"> <r...")
 
Line 1: Line 1:
 
{{Config}} {{WebServer}} {{Cookbook}}
 
{{Config}} {{WebServer}} {{Cookbook}}
 +
 +
 +
=== resin.properties ===
 +
 +
  http : 8080
 +
  web_servers : 192.168.1.10 192.168.1.11 192.168.1.12
  
 
=== resin.xml ===
 
=== resin.xml ===
Line 26: Line 32:
 
   
 
   
 
  </resin>
 
  </resin>
 
=== resin.properties ===
 
 
 
  http : 8080
 
  web_servers : 192.168.1.10 192.168.1.11 192.168.1.12
 

Revision as of 00:00, 20 January 2012

Gears-48.pngWeb-48.pngCookbook-48.png


resin.properties

 http : 8080
 web_servers : 192.168.1.10 192.168.1.11 192.168.1.12

resin.xml

<resin xmlns="http://caucho.com/ns/resin"
       xmlns:resin="urn:java:com.caucho.resin">

   <resin:properties path="${__DIR__}/resin.properties" optional="true"/>

   <log-handler name="" level="all" path="stdout:"/>

   <home-cluster>web</home-cluster>

   <cluster id="web">
     <resin:import path="classpath:META-INF/caucho/app-default.xml"/>

     <server-multi id-prefix="web-" address_list="${web_servers}" port="6800">
       <http port="${http}"/>
     </server-multi>

     <host id="">
       <web-app-deploy path="webapps"/>
     </host>
       
   </cluster>

</resin>
Personal tools
TOOLBOX
LANGUAGES