Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Resteasy integration ? #13

Open
vietj opened this issue Jan 3, 2017 · 5 comments
Open

Resteasy integration ? #13

vietj opened this issue Jan 3, 2017 · 5 comments

Comments

@vietj
Copy link

vietj commented Jan 3, 2017

Resteasy provides a Vert.x web server implementation since Resteasy 3.1.

Would it make sense to provide an integration as a vertx-weld module to allow to combine that with service proxies and such ?

@vietj
Copy link
Author

vietj commented Jan 3, 2017

Actually I believe it would be a good thing to do and provide a good basis for writing web app with Weld / Vert.x and JaxRS . cc @emmanuelbernard

@vietj
Copy link
Author

vietj commented Jan 3, 2017

@mkouba
Copy link
Member

mkouba commented Jun 12, 2017

@vietj FYI I've been able to modify the HelloWorldService example resource to @Inject a CDI bean. The problem is that the CDI request context is not activate when VertxRequestHandler delegates to org.jboss.resteasy.plugins.server.vertx.RequestDispatcher. And so @RequestScoped resources (default) do not work. It would be great if we could wrap/intercept the body handler set by VertxRequestHandler.

Steps to reproduce:

  • add org.jboss.resteasy:resteasy-cdi and org.jboss.weld.vertx:weld-vertx-core on the class path
  • deploy WeldVerticle before the verticle starting VertxResteasyDeployment
  • set CDI injection factory before the VertxResteasyDeployment is started, i.e. deployment.setInjectorFactoryClass("org.jboss.resteasy.cdi.CdiInjectorFactory")

I will create a branch of vertx-examples so that we can play with code.

@mkouba
Copy link
Member

mkouba commented Jun 12, 2017

@seanf
Copy link

seanf commented Sep 6, 2017

Another reason for integrating with RESTEasy is that it would allow the use of Enunciate's documentation generation for JAX-RS-annotated REST interfaces.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants