<div dir="ltr"><div>I don't know that code too well to really know, but what you have in mind is valves defined by mgmt as in subsystem=web/valve=myvalve:add(class-name=...)<br></div>I think it should be possible to add valve instance via web's msc service, as i know gatein guys register valves directly.<br>
<br>How exactly and where i am not sure.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 11, 2014 at 4:10 PM, Bill Burke <span dir="ltr"><<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">AFAICT, you can only specify a classname in ValveMetaData. You can't actually instantiate the valve in the deployment processor. Anyways. Apologies if this isn't the right list for this question.<div class="">
<br>
<br>
On 2/11/2014 10:05 AM, Tomaž Cerar wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
You could register tomcat valve and to pretty much similar things.<br>
<br>
<br>
On Tue, Feb 11, 2014 at 4:02 PM, Bill Burke <<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a><br></div><div class="">
<mailto:<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>>> wrote:<br>
<br>
<br>
<br>
On 2/11/2014 9:59 AM, Tomaž Cerar wrote:<br>
<br>
so you probably mean, when some mgmt attribute / resource changes in<br>
your subsystem how to pass that over to the handler.<br>
<br>
Best way would be to have some msc service that holds the<br>
current data,<br>
and you manipulate that service by :add/write-attribute handlers.<br>
and your handlers have reference to that service, directly or<br>
indirectly<br>
is different story.<br>
<br>
<br>
Yes, that was my original question. How can an Undertow Handler or<br>
AuthMech get a reference to the MSC service? Which you guys answered.<br>
<br>
I'm now trying to figure out the best way to do this on AS7/EAP6<br>
with JBossWeb as its not as flexible (as awesome) as Undertow. :)<br>
<br>
<br>
--<br>
Bill Burke<br>
JBoss, a division of Red Hat<br>
<a href="http://bill.burkecentral.com" target="_blank">http://bill.burkecentral.com</a><br>
<br>
<br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
-- <br>
Bill Burke<br>
JBoss, a division of Red Hat<br>
<a href="http://bill.burkecentral.com" target="_blank">http://bill.burkecentral.com</a><br>
</div></div></blockquote></div><br></div>