<div dir="ltr">what do you consider for subsystem metadata? and is this your subsystem or undertow one?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 11, 2014 at 3:48 PM, Bill Burke <span dir="ltr">&lt;<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">looking to have an handler notified when subsystem metadata is modified.  A redeploy won&#39;t work in all scenarios.<div class="HOEnZb">
<div class="h5"><br>
<br>
On 2/11/2014 1:44 AM, Stuart Douglas wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What information are you actually after? Undertow still uses the same metadata, but it also looks at some additional attachments when it is building the deployment.<br>
<br>
Something you could do to avoid the static service registry is just pass the ServiceRegistry that you can get in a DeploymentUnitProcessor to the HandlerWrappers constructor, and add the service name to you are after to the attachment org.jboss.as.server.<u></u>deployment.Attachments#WEB_<u></u>DEPENDENCIES.<br>

<br>
This will allow you to look up the service in the handler wrapper, and adding it to the dependencies list means that it will definitely be up by that time.<br>
<br>
Stuart<br>
<br>
----- Original Message -----<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
From: &quot;Bill Burke&quot; &lt;<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>&gt;<br>
To: &quot;Stuart Douglas&quot; &lt;<a href="mailto:sdouglas@redhat.com" target="_blank">sdouglas@redhat.com</a>&gt;<br>
Cc: &quot;Tomaž Cerar&quot; &lt;<a href="mailto:tomaz.cerar@gmail.com" target="_blank">tomaz.cerar@gmail.com</a>&gt;, <a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a><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&#39;d 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>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
To save you looking the relevant class is<br>
org.wildfly.extension.<u></u>undertow.deployment.<u></u>UndertowAttachments.<br>
<br>
Stuart<br>
<br>
----- Original Message -----<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
From: &quot;Bill Burke&quot; &lt;<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>&gt;<br>
To: &quot;Tomaž Cerar&quot; &lt;<a href="mailto:tomaz.cerar@gmail.com" target="_blank">tomaz.cerar@gmail.com</a>&gt;<br>
Cc: <a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a><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>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On Fri, Feb 7, 2014 at 9:51 PM, Bill Burke &lt;<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a><br>
&lt;mailto:<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>&gt;&gt; wrote:<br>
<br>
      I just need a reference to this service as it contains config<br>
      information that is stored in the subsystem (standalone.xml, sorry<br>
      if I&#39;m confusing the terminology).  Don&#39;t care where or when the<br>
      Undertow Handler gets this referenc(deploy time or runtime).<br>
<br>
      Is it possible to create HttpHandler instances in a deployment<br>
      processor and attach them to the WAR deployment?  What about<br>
      AuthMechanisms?  I guess I should dive into the undertow subsystem a<br>
      bit more.<br>
<br>
<br>
<br>
Yeah it is possible create &amp; attach http handlers to the chain inside<br>
your deployment processor, same for auth mechanisms.<br>
There are many subsystems that already do exactly this.<br>
</blockquote>
<br>
Awesome. Ok, that&#39;s all I needed.  I&#39;ll search the 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>
______________________________<u></u>_________________<br>
undertow-dev mailing list<br>
<a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a><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>
</blockquote></blockquote>
<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>
</blockquote></blockquote>
<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>