You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Leith Shabbot <ls...@gmail.com> on 2012/10/05 21:15:23 UTC

Separating JAX-RS annotations from implementing service

Hi:

I am wondering if it is possible to put all the JAX-RS annotations into an
interface and have my service implement that particular interface.  I have
seen some examples online, but for some reason it is not working for me
(You can't put anything on the internet that is not true..). I can provide
snippets if anyone is interested..


Thanks

Re: Separating JAX-RS annotations from implementing service

Posted by Leith Shabbot <ls...@gmail.com>.
Hey Sergey:

That did it. Thanks

On Sun, Oct 7, 2012 at 11:37 AM, Sergey Beryozkin <sb...@gmail.com>wrote:

> Hi
>
> On 05/10/12 20:15, Leith Shabbot wrote:
>
>> Hi:
>>
>> I am wondering if it is possible to put all the JAX-RS annotations into an
>> interface and have my service implement that particular interface.  I have
>> seen some examples online, but for some reason it is not working for me
>> (You can't put anything on the internet that is not true..). I can provide
>> snippets if anyone is interested..
>>
>>
> We have tests and demos where this is supported.
> Make sure that the implementation class does not override the inherited
> annotations, typically this is the main issue.
>
> Please copy the relevant fragments here if it still does not work
>
> Cheers, Sergey
>
>
>> Thanks
>>
>>
>
> --
> Sergey Beryozkin
>
> Talend Community Coders
> http://coders.talend.com/
>
> Blog: http://sberyozkin.blogspot.com
>

Re: Separating JAX-RS annotations from implementing service

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi
On 05/10/12 20:15, Leith Shabbot wrote:
> Hi:
>
> I am wondering if it is possible to put all the JAX-RS annotations into an
> interface and have my service implement that particular interface.  I have
> seen some examples online, but for some reason it is not working for me
> (You can't put anything on the internet that is not true..). I can provide
> snippets if anyone is interested..
>

We have tests and demos where this is supported.
Make sure that the implementation class does not override the inherited 
annotations, typically this is the main issue.

Please copy the relevant fragments here if it still does not work

Cheers, Sergey

>
> Thanks
>


-- 
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com