4 # This file provides jk derived plugins with the needed information to
5 # connect to the different tomcat workers. Note that the distributed
6 # version of this file requires modification before it is usable by a
9 # As a general note, the characters $( and ) are used internally to define
10 # macros. Do not use them in your own configuration!!!
12 # Whenever you see a set of lines such as:
16 # the final value for y will be value\something
18 # Normaly all you will need to do is un-comment and modify the first three
19 # properties, i.e. workers.tomcat_home, workers.java_home and ps.
20 # Most of the configuration is derived from these.
22 # When you are done updating workers.tomcat_home, workers.java_home and ps
23 # you should have 3 workers configured:
25 # - An ajp12 worker that connects to localhost:8007
26 # - An ajp13 worker that connects to localhost:8009
27 # - A jni inprocess worker.
28 # - A load balancer worker
30 # However by default the plugins will only use the ajp12 worker. To have
31 # the plugins use other workers you should modify the worker.list property.
35 # OPTIONS ( very important for jni mode )
38 # workers.tomcat_home should point to the location where you
39 # installed tomcat. This is where you have your conf, webapps and lib
42 #workers.tomcat_home=/mnt/elba/rubbos/apache-tomcat-5.5.17
43 workers.tomcat_home=/bottlenecks/rubbos/app/apache-tomcat-5.5.17
46 # workers.java_home should point to your Java installation. Normally
47 # you should have a bin and lib directories beneath it.
49 #workers.java_home=/mnt/elba/rubbos/jdk1.6.0_27
50 workers.java_home=/bottlenecks/rubbos/app/jdk1.6.0_27
53 # You should configure your environment slash... ps=\ on NT and / on UNIX
54 # and maybe something different elsewhere.
59 #------ ADVANCED MODE ------------------------------------------------
60 #---------------------------------------------------------------------
64 #------ DEFAULT worket list ------------------------------------------
65 #---------------------------------------------------------------------
68 # The workers that your plugins should create and work with
70 # Add 'inprocess' if you want JNI connector
75 worker.TOMCAT1.port=8009
76 worker.TOMCAT1.host=REPLACE_TOMCAT1_HOST
77 worker.TOMCAT1.type=ajp13
78 worker.TOMCAT1.lbfactor=1
82 #------ DEFAULT ajp12 WORKER DEFINITION ------------------------------
83 #---------------------------------------------------------------------
87 # Defining a worker named ajp12 and of type ajp12
88 # Note that the name and the type do not have to match.
90 #worker.ajp12.port=8007
91 #worker.ajp12.host=localhost
92 #worker.ajp12.type=ajp12
94 # Specifies the load balance factor when used with
95 # a load balancing worker.
97 # ----> lbfactor must be > 0
98 # ----> Low lbfactor means less work done by the worker.
99 #worker.ajp12.lbfactor=1
102 #------ DEFAULT ajp13 WORKER DEFINITION ------------------------------
103 #---------------------------------------------------------------------
107 # Defining a worker named ajp13 and of type ajp13
108 # Note that the name and the type do not have to match.
110 #worker.ajp13.port=8009
111 #worker.ajp13.host=node60.rubbostest.Infosphere.emulab.net
112 #worker.ajp13.type=ajp13
114 # Specifies the load balance factor when used with
115 # a load balancing worker.
117 # ----> lbfactor must be > 0
118 # ----> Low lbfactor means less work done by the worker.
119 #worker.ajp13.lbfactor=1
122 # Specify the size of the open connection cache.
123 #worker.ajp13.cachesize
126 #------ DEFAULT LOAD BALANCER WORKER DEFINITION ----------------------
127 #---------------------------------------------------------------------
131 # The router (type lb) workers perform wighted round-robin
132 # load balancing with sticky sessions.
134 # ----> If a worker dies, the load balancer will check its state
135 # once in a while. Until then all work is redirected to peer
137 worker.worker1.type=lb
138 worker.worker1.balance_workers=TOMCAT1
139 worker.worker1.sticky_session=True
140 worker.worker1.method=Session
143 #------ DEFAULT JNI WORKER DEFINITION---------------------------------
144 #---------------------------------------------------------------------
148 # Defining a worker named inprocess and of type jni
149 # Note that the name and the type do not have to match.
151 worker.inprocess.type=jni
154 #------ CLASSPATH DEFINITION -----------------------------------------
155 #---------------------------------------------------------------------
159 # Additional class path components.
161 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
164 # Setting the command line for tomcat.
165 # Note: The cmd_line string may not contain spaces.
167 worker.inprocess.cmd_line=start
169 # Not needed, but can be customized.
170 #worker.inprocess.cmd_line=-config
171 #worker.inprocess.cmd_line=$(workers.tomcat_home)$(ps)conf$(ps)server.xml
172 #worker.inprocess.cmd_line=-home
173 #worker.inprocess.cmd_line=$(workers.tomcat_home)
176 # The JVM that we are about to use
181 #worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll
183 #worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so
184 # Unix - Sun VM or blackdown
185 #worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)classic$(ps)libjvm.so
186 worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)server$(ps)libjvm.so
189 # And this is for jdk1.1.X
191 #worker.inprocess.jvm_lib=$(workers.java_home)$(ps)bin$(ps)javai.dll
195 # Setting the place for the stdout and stderr of tomcat
197 worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
198 worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
201 # Setting the tomcat.home Java property
203 #worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home)
206 # Java system properties
208 # worker.inprocess.sysprops=java.compiler=NONE
209 # worker.inprocess.sysprops=myprop=mypropvalue
212 # Additional path components.
214 # worker.inprocess.ld_path=d:$(ps)SQLLIB$(ps)bin