You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@olingo.apache.org by "Roehrig, Stefan" <st...@vaillant-group.com> on 2015/02/09 10:26:42 UTC

AW: Must I use javax.ws.rs 2.0-m10 for Olingo 2.0.1?

Hi Michael,

could you give a short explanation of the advantages or drawbacks of using CXF or ODataServlet?
Viele Grüße,
Stefan Röhrig
--
Stefan Röhrig – Consultant Group IT - BPM

Vaillant Group IT
Tel. +49 2191 18 4725 • Mobile +49 175 2951 757 • Fax +49 2191 18 74725
E-Mail: stefan.roehrig@vaillant-group.com<ma...@vaillant-group.com> • http://www.vaillant-group.com<http://www.vaillant-group.com/>

Vaillant Group Business Services GmbH, Berghauser Str. 63, D-42859 Remscheid
Sitz: Remscheid • Registergericht: Amtsgericht Wuppertal HRB 11591 • Geschäftsführer: Dr. Stefan Borchers, Eckhard Kloth
Always think green before printing!

Von: Bolz, Michael [mailto:michael.bolz@sap.com]
Gesendet: Mittwoch, 28. Januar 2015 06:15
An: user@olingo.apache.org
Betreff: Re: Must I use javax.ws.rs 2.0-m10 for Olingo 2.0.1?

Hello,

Olingo 2.0.1 only require “javax.ws.rs<http://javax.ws.rs>-api” for use in combination with Apache CXF.
If you don’t use the “org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet” for request handling but instead the "org.apache.olingo.odata2.core.servlet.ODataServlet” you can also exclude the “javax.ws.rs<http://javax.ws.rs>-api” as dependency from Olingo (see also here: http://olingo.apache.org/doc/odata2/tutorials/servlet.html).

Kind regards,
Michael

On 28 Jan 2015, at 01:57, Wendy Tamm <we...@gmail.com>> wrote:

Why does Olingo 2.0.1 require javax.ws.rs<http://javax.ws.rs>-api 2.0-m10? There is a stable version of javax.ws.rs<http://javax.ws.rs>-api 2.0 from May 2013, which I am already using in my project. Will it work or is there something special about the m10 build?

Thanks in advance,

--
- WT


Re: Must I use javax.ws.rs 2.0-m10 for Olingo 2.0.1?

Posted by "Bolz, Michael" <mi...@sap.com>.
Hi Stefan,

the advantage (and main reason for developing it) for the ODataServlet is the reduced the amount of required dependencies which allows to run in every JEE compliant runtime environment.
Disadvantage was that it had to be developed  ;o)
Because of that earlier versions of Olingo used the JAX-RS features which then requires the according "javax.ws.rs-api” dependencies and an JAX-RS implementation (CXF) during runtime.  

Actual both (JAX-RS with CXF / ODataServlet) is supported but IMHO I would prefer the ODataServlet.

Kind regards,
Michael

> On 09 Feb 2015, at 10:26, Roehrig, Stefan <st...@vaillant-group.com> wrote:
> 
> Hi Michael,
>  
> could you give a short explanation of the advantages or drawbacks of using CXF or ODataServlet?
> Viele Grüße,
> Stefan Röhrig
> 
> -- 
> Stefan Röhrig – Consultant Group IT - BPM
> 
> Vaillant Group IT
> Tel. +49 2191 18 4725 Ÿ Mobile +49 175 2951 757 Ÿ Fax +49 2191 18 74725
> E-Mail: stefan.roehrig@vaillant-group.com <ma...@vaillant-group.com> Ÿ http://www.vaillant-group.com <http://www.vaillant-group.com/>
> 
> Vaillant Group Business Services GmbH, Berghauser Str. 63, D-42859 Remscheid
> Sitz: Remscheid Ÿ Registergericht: Amtsgericht Wuppertal HRB 11591 Ÿ Geschäftsführer: Dr. Stefan Borchers, Eckhard Kloth
> Always think green before printing!
> 
>  
> Von: Bolz, Michael [mailto:michael.bolz@sap.com] 
> Gesendet: Mittwoch, 28. Januar 2015 06:15
> An: user@olingo.apache.org
> Betreff: Re: Must I use javax.ws.rs 2.0-m10 for Olingo 2.0.1?
>  
> Hello,
>  
> Olingo 2.0.1 only require “javax.ws.rs <http://javax.ws.rs/>-api” for use in combination with Apache CXF.
> If you don’t use the “org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet” for request handling but instead the "org.apache.olingo.odata2.core.servlet.ODataServlet” you can also exclude the “javax.ws.rs <http://javax.ws.rs/>-api” as dependency from Olingo (see also here: http://olingo.apache.org/doc/odata2/tutorials/servlet.html <http://olingo.apache.org/doc/odata2/tutorials/servlet.html>).
>  
> Kind regards,
> Michael
>