<div dir="ltr"><div><div>so you probably mean, when some mgmt attribute / resource changes in your subsystem how to pass that over to the handler.<br><br></div>Best way would be to have some msc service that holds the current data, and you manipulate that service by :add/write-attribute handlers.<br>
</div>and your handlers have reference to that service, directly or indirectly is different story.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 11, 2014 at 3:54 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">Ours, not undertow.<div class=""><br>
<br>
On 2/11/2014 9:52 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="">
what do you consider for subsystem metadata? and is this your subsystem<br>
or undertow one?<br>
<br>
<br>
On Tue, Feb 11, 2014 at 3:48 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>
looking to have an handler notified when subsystem metadata is<br>
modified. A redeploy won't work in all scenarios.<br>
<br>
<br>
On 2/11/2014 1:44 AM, Stuart Douglas wrote:<br>
<br>
What information are you actually after? Undertow still uses the<br>
same metadata, but it also looks at some additional attachments<br>
when it is building the deployment.<br>
<br>
Something you could do to avoid the static service registry is<br>
just pass the ServiceRegistry that you can get in a<br>
DeploymentUnitProcessor to the HandlerWrappers constructor, and<br>
add the service name to you are after to the attachment<br></div>
org.jboss.as.server.__<u></u>deployment.Attachments#WEB___<u></u>DEPENDENCIES.<div class=""><br>
<br>
This will allow you to look up the service in the handler<br>
wrapper, and adding it to the dependencies list means that it<br>
will definitely be up by that time.<br>
<br>
Stuart<br>
<br>
----- Original Message -----<br>
<br>
From: "Bill Burke" <<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a><br></div>
<mailto:<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>>><br>
To: "Stuart Douglas" <<a href="mailto:sdouglas@redhat.com" target="_blank">sdouglas@redhat.com</a><br>
<mailto:<a href="mailto:sdouglas@redhat.com" target="_blank">sdouglas@redhat.com</a>>><br>
Cc: "Tomaž Cerar" <<a href="mailto:tomaz.cerar@gmail.com" target="_blank">tomaz.cerar@gmail.com</a><br>
<mailto:<a href="mailto:tomaz.cerar@gmail.com" target="_blank">tomaz.cerar@gmail.com</a>><u></u>>,<br>
<a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a><br>
<mailto:<a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.<u></u>jboss.org</a>><div class=""><br>
Sent: Sunday, 9 February, 2014 9:08:31 PM<br>
Subject: Re: [undertow-dev] accessing msc services<br>
<br>
Thanks.<br>
<br>
For a EAP/AS7 IIRC, JBossWeb only exposed Metadata, so I'd<br>
have to use a<br>
static service registry pattern or something? Anybody know?<br>
<br>
On 2/7/2014 10:21 PM, Stuart Douglas wrote:<br>
<br>
To save you looking the relevant class is<br></div>
org.wildfly.extension.__<u></u>undertow.deployment.__<u></u>UndertowAttachments.<div class=""><br>
<br>
Stuart<br>
<br>
----- Original Message -----<br>
<br>
From: "Bill Burke" <<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a><br></div>
<mailto:<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>>><br>
To: "Tomaž Cerar" <<a href="mailto:tomaz.cerar@gmail.com" target="_blank">tomaz.cerar@gmail.com</a><br>
<mailto:<a href="mailto:tomaz.cerar@gmail.com" target="_blank">tomaz.cerar@gmail.com</a>><u></u>><br>
Cc: <a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a><br>
<mailto:<a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.<u></u>jboss.org</a>><div class=""><br>
Sent: Friday, 7 February, 2014 11:10:26 PM<br>
Subject: Re: [undertow-dev] accessing msc services<br>
<br>
<br>
<br>
On 2/7/2014 3:53 PM, Tomaž Cerar wrote:<br>
<br>
<br>
On Fri, Feb 7, 2014 at 9:51 PM, Bill Burke<br>
<<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a> <mailto:<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>><br></div>
<mailto:<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a><div><div class="h5"><br>
<mailto:<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>>>> wrote:<br>
<br>
I just need a reference to this service<br>
as it contains config<br>
information that is stored in the<br>
subsystem (standalone.xml, sorry<br>
if I'm confusing the terminology). Don't<br>
care where or when the<br>
Undertow Handler gets this<br>
referenc(deploy time or runtime).<br>
<br>
Is it possible to create HttpHandler<br>
instances in a deployment<br>
processor and attach them to the WAR<br>
deployment? What about<br>
AuthMechanisms? I guess I should dive<br>
into the undertow subsystem a<br>
bit more.<br>
<br>
<br>
<br>
Yeah it is possible create & attach http<br>
handlers to the chain inside<br>
your deployment processor, same for auth mechanisms.<br>
There are many subsystems that already do<br>
exactly this.<br>
<br>
<br>
Awesome. Ok, that's all I needed. I'll search the<br>
codebase.<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></div></div>
______________________________<u></u>___________________<div class=""><br>
undertow-dev mailing list<br>
<a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a><br>
<mailto:<a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.<u></u>jboss.org</a>><br></div>
<a href="https://lists.jboss.org/__mailman/listinfo/undertow-dev" target="_blank">https://lists.jboss.org/__<u></u>mailman/listinfo/undertow-dev</a><div class=""><br>
<<a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" target="_blank">https://lists.jboss.org/<u></u>mailman/listinfo/undertow-dev</a>><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>
--<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>