You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Benson Margulies <bi...@gmail.com> on 2008/07/31 15:44:20 UTC

Re: Has anyone used Aegis Databinding with JAXRS?

I'm confused. The pom.xml for rt/frontend/jaxrs excludes JAXB, but there is
a JAXB provider in there, and the eclipse build path includes JAXB. How is
this working?

On Thu, Jun 19, 2008 at 1:00 PM, Sergey Beryozkin <sergey.beryozkin@iona.com
> wrote:

> Hi
>
> Have a look please here
>
> https://jsr311.dev.java.net/nonav/releases/0.6/index.html,
>
> MessageBodyWriter.writeTo() and MessageBodyReader.readFrom()
>
> I've added some documentation on how to write simple providers here :
>
> http://cwiki.apache.org/CXF20DOC/jax-rs-jsr-311.html
>
> Perhaps you can have a look at the the existing one, say
> rt/frontent/jaxrs/.../JAXBElementProvider, and create another
> AegisProvider out of it, if it's something you'd be interested in doing at
> some point in time...
>
> The only unclear question is how to implement corresponding
> isWriteable/isReadable methods. In 0.6, you can just return true, and I can
> fix it later on, once 0.8 is supported, to ensure that only of
> ProduceMime(application/xml) is available on a method then true is returned.
>
> Cheers, Sergey
>
>
> ----- Original Message ----- From: "Benson Margulies" <
> bimargulies@gmail.com>
> To: <us...@cxf.apache.org>
> Sent: Thursday, June 19, 2008 5:36 PM
> Subject: Re: Has anyone used Aegis Databinding with JAXRS?
>
>
>
>  Can you point me to a model of a provider?
>>
>> On Thu, Jun 19, 2008 at 12:13 PM, Sergey Beryozkin <
>> sergey.beryozkin@iona.com> wrote:
>>
>>  Hi
>>>
>>>
>>>  Hello,
>>>>
>>>> I am trying to get the Aegis databinding to work with the JAXRS
>>>> front-end
>>>> but haven't been successful yet.  There is no documentation on this
>>>> configuration, has anyone been able to get it working?  If so, could you
>>>> provide an example configuration?  I can't seem to get JAXRS to use
>>>> anything
>>>> but JAXB databinding.
>>>>
>>>>
>>> I think having an Aegis JAX-RS provider would be cool but I don't have
>>> the
>>> time to create the one. I might give it a shot some time later though.
>>> My understanding, from what Benson said, is that it should be failrly
>>> straightforward to create the provider. If someone could create a basic
>>> Aegis provider which would create an AegisContext and then
>>> serialize/deserialize a given type, then it would be a good start...
>>>
>>> Cheers, Sergey
>>>
>>>
>>>  Thanks,
>>>>
>>>> Britt Crawford
>>>> --
>>>> View this message in context:
>>>>
>>>> http://www.nabble.com/Has-anyone-used-Aegis-Databinding-with-JAXRS--tp17995344p17995344.html
>>>> Sent from the cxf-user mailing list archive at Nabble.com.
>>>>
>>>>
>>> ----------------------------
>>> IONA Technologies PLC (registered in Ireland)
>>> Registered Number: 171387
>>> Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
>>>
>>>
>>
> ----------------------------
> IONA Technologies PLC (registered in Ireland)
> Registered Number: 171387
> Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
>