You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Henk Fictorie <he...@kpn.com> on 2006/09/28 10:08:57 UTC

mod_jk 1.2.19 worker reference inherentance question

Hi,

In mod_jk 1.2.19 the reference attribute is introduced for a worker. My
question is does inherentance work for this attribute. Example:

worker.template.activation=D

worker.worker1.reference=worker.template
worker.worker1.port=18009

worker.worker2.reference=worker.worker1

Will this result for worker2 into?

worker.worker2.activation=D
worker.worker2.port=18009
-- 
View this message in context: http://www.nabble.com/mod_jk-1.2.19-worker-reference-inherentance-question-tf2349342.html#a6542048
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: mod_jk 1.2.19 worker reference inherentance question

Posted by Rainer Jung <ra...@kippdata.de>.
Yes :)

You can use it to inherit properties via multiple steps. But be careful,
it doesn't check for loops!

To make sure before I answered, I did a little check with a slightly
enhanced configuration:

# Make config observable
worker.list=status
worker.status.type=status
worker.status.mount=/jkstatus

# Disabled only makes sense for lb children
# Also lb gives us excellent views in status worker
worker.list=lb
worker.lb.type=lb
worker.lb.balance_workers=worker2

# Now your original example
worker.template.activation=D

worker.worker1.reference=worker.template
worker.worker1.port=18009

worker.worker2.reference=worker.worker1


Then you can call /jkstatus on your Apache. The load-balancer shows in
the status worker:

worker2 ajp13 worker2 localhost:18009 127.0.0.1:18009 DIS N/A ...

So, yes: port is 18009 and activation is DIS=Disabled (both are not the
defaults).

Nice to see users playing around with the new features!

Regards,

Rainer

Henk Fictorie schrieb:
> Hi,
> 
> In mod_jk 1.2.19 the reference attribute is introduced for a worker. My
> question is does inherentance work for this attribute. Example:
> 
> worker.template.activation=D
> 
> worker.worker1.reference=worker.template
> worker.worker1.port=18009
> 
> worker.worker2.reference=worker.worker1
> 
> Will this result for worker2 into?
> 
> worker.worker2.activation=D
> worker.worker2.port=18009

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org