<div dir="ltr"><div><div><div><div><div>ServletExtension is not really meant to be also WildFly extension... but there is some overlap.<br></div><div>As ServletExtension would work also outside wildfly deployment.<br><br></div>what you could do is use Service Activator that implements <em>org.jboss.msc.service.ServiceActivator</em><br>and register it as a service in your deployment.<br><br></div>This service activator will be than activated with deployment is started. <br>And example how to use this can be found at: <a href="http://management-platform.blogspot.com/2012/07/co-located-management-client-for.html">http://management-platform.blogspot.com/2012/07/co-located-management-client-for.html</a><br><br></div>other option would be to write proper WildFly extension which is bit more work.<br></div>take a look at <a href="https://docs.jboss.org/author/display/WFLY8/Extending+WildFly+8">https://docs.jboss.org/author/display/WFLY8/Extending+WildFly+8</a><br>for how to do that.<br><br>--<br></div>tomaz<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 23, 2015 at 1:25 PM, Harris, Carl <span dir="ltr">&lt;<a href="mailto:ceharris@vt.edu" target="_blank">ceharris@vt.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I made a ServletExtension that adds an AuthenticationMethod to an Undertow servlet deployment.  I have a basic mock up of the authentication method working.<br>
<br>
In order to move beyond the mock up, my authentication mechanism needs to use a service that my Wildfly extension puts into the (JBoss MSC) service registry.  I’m not seeing how to put the pieces together to get a reference to the service registry so I can locate my service.<br>
<br>
Does someone have an example that I could reference or tips on how I might go about this?<br>
<br>
Thanks,<br>
<br>
Carl<br>
<br>
<br>
—<br>
Carl Harris<br>
Chief Technology Architect<br>
Virginia Tech<br>
<br>
<br>
_______________________________________________<br>
undertow-dev mailing list<br>
<a href="mailto:undertow-dev@lists.jboss.org">undertow-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/undertow-dev</a></blockquote></div><br></div>