Loading...

users@tomcat.apache.org

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: mod_jk 1.2.19 worker reference inherentance question Rainer Jung Thu Sep 28 18:04:29 2006

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: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]