You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@openwebbeans.apache.org by PÉNET LUDOVIC <l....@senat.fr> on 2016/06/15 20:36:50 UTC

RestEasy and openwebbeans

Hi.

Does anyone have experience on using RestEasy with OWB ?

I find plenty of examples on how to use it with Weld.

I do not use TomEE but the last version of Tomcat 8.0.x or the
to-be-released-soon 8.5.x branch.

Thanks in advance,

Ludovic


|
| AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
|


Re: RestEasy and openwebbeans

Posted by "l.penet@senat.fr" <l....@senat.fr>.
On 15/06/2016 22:53, John D. Ament wrote:
>
> On Wed, Jun 15, 2016 at 4:44 PM "P�NET LUDOVIC" <l.penet@senat.fr 
> <ma...@senat.fr>> wrote:
>
>
>     John D. Ament a �crit :
>     > Ludovic,
>     >
>     > The 3.0 line of resteasy should work with OWB 1.6 without any
>     issues.
>     > Please do report back any issues you might encounter. Make sure you
>     > leverage the resteasy-cdi module.
>     Thank you very much for this quick reply.
>
>     If I may ask an additionnal question : which solution did you
>     retain for
>     unit tests ? Do you think that things will go smooth if I do them with
>     undertow, as described in REStEasy doc
>     http://docs.jboss.org/resteasy/docs/3.0.17.Final/userguide/html_single/index.html#d4e1462
>     ?
>
>
> Well, those sound more like component tests not unit tests to me.  If 
> you're using tomcat, I would use tomcat embedded for this use case.  
> Apache DeltaSpike has a simple tutorial on creating an embedded tomcat 
> which may help you here
>
> https://deltaspike.apache.org/documentation/container-control.html#EmbeddedServletSupport
>
> The Undertow Jaxrs Server is really just a wrapper for the bootstrap 
> mechanisms for Undertow ( see here: 
> https://github.com/resteasy/Resteasy/blob/master/server-adapters/resteasy-undertow/src/main/java/org/jboss/resteasy/plugins/server/undertow/UndertowJaxrsServer.java). 
> You could accomplish the same w/ tomcat and owb servlet modules. 
> http://openwebbeans.apache.org/openwebbeans-tomcat.html
Thanks for the advices, it works great and was easy to setup.

Ludovic

|
| AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
|


Re: RestEasy and openwebbeans

Posted by Romain Manni-Bucau <rm...@gmail.com>.
For test I think tomcat embedded 8.5.3 should be the easiest if you use
tomcat in prod.
Le 15 juin 2016 22:53, "John D. Ament" <jo...@apache.org> a écrit :

>
> On Wed, Jun 15, 2016 at 4:44 PM "PÉNET LUDOVIC" <l....@senat.fr> wrote:
>
>>
>> John D. Ament a écrit :
>> > Ludovic,
>> >
>> > The 3.0 line of resteasy should work with OWB 1.6 without any issues.
>> > Please do report back any issues you might encounter.  Make sure you
>> > leverage the resteasy-cdi module.
>> Thank you very much for this quick reply.
>>
>> If I may ask an additionnal question : which solution did you retain for
>> unit tests ? Do you think that things will go smooth if I do them with
>> undertow, as described in REStEasy doc
>>
>> http://docs.jboss.org/resteasy/docs/3.0.17.Final/userguide/html_single/index.html#d4e1462
>> ?
>>
>
> Well, those sound more like component tests not unit tests to me.  If
> you're using tomcat, I would use tomcat embedded for this use case.  Apache
> DeltaSpike has a simple tutorial on creating an embedded tomcat which may
> help you here
>
>
> https://deltaspike.apache.org/documentation/container-control.html#EmbeddedServletSupport
>
> The Undertow Jaxrs Server is really just a wrapper for the bootstrap
> mechanisms for Undertow ( see here:
> https://github.com/resteasy/Resteasy/blob/master/server-adapters/resteasy-undertow/src/main/java/org/jboss/resteasy/plugins/server/undertow/UndertowJaxrsServer.java).
> You could accomplish the same w/ tomcat and owb servlet modules.
> http://openwebbeans.apache.org/openwebbeans-tomcat.html
>
>
> John
>
>
>>
>> Thanks again,
>>
>> Ludovic
>>
>>
>> |
>> | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
>> |
>>
>>

Re: RestEasy and openwebbeans

Posted by "John D. Ament" <jo...@apache.org>.
On Wed, Jun 15, 2016 at 4:44 PM "PÉNET LUDOVIC" <l....@senat.fr> wrote:

>
> John D. Ament a écrit :
> > Ludovic,
> >
> > The 3.0 line of resteasy should work with OWB 1.6 without any issues.
> > Please do report back any issues you might encounter.  Make sure you
> > leverage the resteasy-cdi module.
> Thank you very much for this quick reply.
>
> If I may ask an additionnal question : which solution did you retain for
> unit tests ? Do you think that things will go smooth if I do them with
> undertow, as described in REStEasy doc
>
> http://docs.jboss.org/resteasy/docs/3.0.17.Final/userguide/html_single/index.html#d4e1462
> ?
>

Well, those sound more like component tests not unit tests to me.  If
you're using tomcat, I would use tomcat embedded for this use case.  Apache
DeltaSpike has a simple tutorial on creating an embedded tomcat which may
help you here

https://deltaspike.apache.org/documentation/container-control.html#EmbeddedServletSupport

The Undertow Jaxrs Server is really just a wrapper for the bootstrap
mechanisms for Undertow ( see here:
https://github.com/resteasy/Resteasy/blob/master/server-adapters/resteasy-undertow/src/main/java/org/jboss/resteasy/plugins/server/undertow/UndertowJaxrsServer.java).
You could accomplish the same w/ tomcat and owb servlet modules.
http://openwebbeans.apache.org/openwebbeans-tomcat.html


John


>
> Thanks again,
>
> Ludovic
>
>
> |
> | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
> |
>
>

Re: RestEasy and openwebbeans

Posted by PÉNET LUDOVIC <l....@senat.fr>.
John D. Ament a crit :
> Ludovic,
>
> The 3.0 line of resteasy should work with OWB 1.6 without any issues.
> Please do report back any issues you might encounter.  Make sure you
> leverage the resteasy-cdi module.
Thank you very much for this quick reply.

If I may ask an additionnal question : which solution did you retain for
unit tests ? Do you think that things will go smooth if I do them with
undertow, as described in REStEasy doc
http://docs.jboss.org/resteasy/docs/3.0.17.Final/userguide/html_single/index.html#d4e1462
?

Thanks again,

Ludovic


|
| AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
|


Re: RestEasy and openwebbeans

Posted by "John D. Ament" <jo...@apache.org>.
Ludovic,

The 3.0 line of resteasy should work with OWB 1.6 without any issues.
Please do report back any issues you might encounter.  Make sure you
leverage the resteasy-cdi module.

John



On Wed, Jun 15, 2016 at 4:36 PM "PÉNET LUDOVIC" <l....@senat.fr> wrote:

> Hi.
>
> Does anyone have experience on using RestEasy with OWB ?
>
> I find plenty of examples on how to use it with Weld.
>
> I do not use TomEE but the last version of Tomcat 8.0.x or the
> to-be-released-soon 8.5.x branch.
>
> Thanks in advance,
>
> Ludovic
>
>
> |
> | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
> |
>
>