openwebbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Use interfaces with JAX-RS Annotations in Meecrowave
Date Thu, 06 Dec 2018 14:57:38 GMT
Hello,

the cxf-cdi discovery expects the impl to have @path, can you duplicate the
anontation on the class (only, others will be inherited)?

Side note: opened https://issues.apache.org/jira/browse/CXF-7921

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le jeu. 6 déc. 2018 à 15:47, <dve@craftwater.de> a écrit :

> Hi list,
>
> I would like to use interfaces with JAX-RS annotations for a meecrowave
> service. Means the @Path, @GET, etc at the interface, @ApplicationScope at
> the implementation class which implements the interface.
> The problem is that meecrowave seems not to register these classes as rest
> resources. If I annotate the implementation like in the examples everything
> works fine. The reason why I would like to have the annotations in an
> interface is, that I want to reuse them for a rest client.
>
> Best wishes
>
> Daniel
>

Mime
View raw message