Closed testn closed 8 years ago
I think there are two ways to achieve this:
JerseyServer
create the vert.x HttpServer
and provide a setupHandler(HandlerJerseyHandler
for whatever route you want. To initialize the JerseyHandler
you would need to follow similar steps used by the JerseyServer
here.Do either of those options work for you?
Yeah (2) 's what I'm doing but the current initialization seems to be quite awkward with the injection of DefaultVertxContainer
in order to create JerseyHandler
and then later inject it via init
method.
See comment in #39
For example, I want to create a verticle to host static content and jersey REST endpoint at the same time. For that, I would wire JerseyHandler to vert.x web handler directly instead.