[undertow-dev] Jersey on Undertow, without servlets?

Stuart Douglas sdouglas at redhat.com
Wed Apr 8 02:21:21 EDT 2015


I think you would need to implement your own container. Looking at https://github.com/jersey/jersey/tree/master/containers there are a few existing container implementation that don't use servlet, you could probably just base it off one of these.

Stuart

----- Original Message -----
> From: "Michael Hixson" <michael.hixson at gmail.com>
> To: undertow-dev at lists.jboss.org
> Sent: Wednesday, 8 April, 2015 3:12:59 PM
> Subject: [undertow-dev] Jersey on Undertow, without servlets?
> 
> Hello,
> 
> Has anyone run a Jersey application on Undertow, *without* using servlets?
> 
> By "using servlets" I mean wrapping an
> org.glassfish.jersey.server.ResourceConfig in an
> org.glassfish.jersey.servlet.ServletContainer and deploying that with
> undertow-servlets.  That's pretty easy to do; I don't have any
> complaints about it.  My question comes mostly from curiosity.
> 
> In my application, ServletContainer is the only connection to the
> servlet API.  My naive view is that the application could be simpler
> (in terms of the number of hidden gears turning to process requests)
> and more efficient by avoiding the servlet API completely, and by only
> using undertow-core.  Maybe I'm wrong, or maybe there is so much work
> involved that no one in their right mind would try it.
> 
> -Michael
> _______________________________________________
> 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