[undertow-dev] Access JBoss MSC service from ServletExtension
Stuart Douglas
sdouglas at redhat.com
Fri Jan 23 21:22:15 EST 2015
org.jboss.as.server.CurrentServiceContainer#getServiceContainer() lets you get a reference to the container, which you can then use to look up the services by name.
You should make sure that the web deployment has a dependency on these services, just to make sure they are there when you look them up.
Stuart
----- Original Message -----
> From: "Carl Harris" <ceharris at vt.edu>
> To: "Tomaž Cerar" <tomaz.cerar at gmail.com>
> Cc: undertow-dev at lists.jboss.org
> Sent: Friday, 23 January, 2015 9:54:55 PM
> Subject: Re: [undertow-dev] Access JBoss MSC service from ServletExtension
>
> On Jan 23, 2015, at 12:17 PM, Tomaž Cerar < tomaz.cerar at gmail.com > wrote:
>
>
>
> Other option would be to write proper WildFly extension which is bit more
> work.
> take a look at
> https://docs.jboss.org/author/display/WFLY8/Extending+WildFly+8
> for how to do that.
>
> Perhaps I wasn’t clear in my original message. I have written a proper
> Wildfly extension. It uses a DeploymentProcessor to observe deployments and
> participates and in the management model to create/configure the services
> needed for the authentication and authorization mechanisms I wish to
> support.
>
> I am using an Undertow ServletExtension so that I can augment the
> authentication mechanisms supported by Undertow with my own mechanism.
>
> What I’m unclear on how to accomplish is how to get a reference to the
> services I have created in my Wildfly extension from within the
> implementation of my Undertow authentication mechanism and associated
> identity manager.
>
> Thanks for any tips/advice.
>
>
> —
> Carl Harris
> Chief Technology Architect
> Virginia Tech
>
> _______________________________________________
> undertow-dev mailing list
> undertow-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/undertow-dev
More information about the undertow-dev
mailing list