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=...)
I think it should be possible to add valve instance via web's msc service, as i know gatein guys register valves directly.

How exactly and where i am not sure.


On Tue, Feb 11, 2014 at 4:10 PM, Bill Burke <bburke@redhat.com> wrote:
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.


On 2/11/2014 10:05 AM, Tomaž Cerar wrote:
You could register tomcat valve and to pretty much similar things.


On Tue, Feb 11, 2014 at 4:02 PM, Bill Burke <bburke@redhat.com
<mailto:bburke@redhat.com>> wrote:



    On 2/11/2014 9:59 AM, Tomaž Cerar wrote:

        so you probably mean, when some mgmt attribute / resource changes in
        your subsystem how to pass that over to the handler.

        Best way would be to have some msc service that holds the
        current data,
        and you manipulate that service by :add/write-attribute handlers.
        and your handlers have reference to that service, directly or
        indirectly
        is different story.


    Yes, that was my original question.  How can an Undertow Handler or
    AuthMech get a reference to the MSC service? Which you guys answered.

    I'm now trying to figure out the best way to do this on AS7/EAP6
    with JBossWeb as its not as flexible (as awesome) as Undertow. :)


    --
    Bill Burke
    JBoss, a division of Red Hat
    http://bill.burkecentral.com



--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com