You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "dattu.1729" <da...@gmail.com> on 2012/06/24 18:51:52 UTC

CXF Osgi Rest Provider

Hi,

Can you please tell me how to add jaxrs provider in blueprint. I am trying
like below, but not working.. 

<jaxrs:server address="/user" id="userProfileResource">
		<jaxrs:serviceBeans>
			<ref component-id="userProfileResourceImpl" />
		</jaxrs:serviceBeans>
		<jaxrs:providers>
			<ref component-id="jsonProvider" />
		</jaxrs:providers>
	</jaxrs:server>

<reference id="jsonProvider" interface="javax.ws.rs.ext.MessageBodyReader"
/>



-----
Thanks
Dattu
--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-Osgi-Rest-Provider-tp5710179.html
Sent from the cxf-issues mailing list archive at Nabble.com.

Re: CXF Osgi Rest Provider

Posted by Sergey Beryozkin <sb...@gmail.com>.
On 24/06/12 17:51, dattu.1729 wrote:
> Hi,
>
> Can you please tell me how to add jaxrs provider in blueprint. I am trying
> like below, but not working..
>
> <jaxrs:server address="/user" id="userProfileResource">
> 		<jaxrs:serviceBeans>
> 			<ref component-id="userProfileResourceImpl" />
> 		</jaxrs:serviceBeans>
> 		<jaxrs:providers>
> 			<ref component-id="jsonProvider" />
> 		</jaxrs:providers>
> 	</jaxrs:server>
>
> <reference id="jsonProvider" interface="javax.ws.rs.ext.MessageBodyReader"
> />

This should be a bean with a class name, same as for userProfileResourceImpl

Sergey

>
>
>
> -----
> Thanks
> Dattu
> --
> View this message in context: http://cxf.547215.n5.nabble.com/CXF-Osgi-Rest-Provider-tp5710179.html
> Sent from the cxf-issues mailing list archive at Nabble.com.


-- 
Sergey Beryozkin

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

Blog: http://sberyozkin.blogspot.com