Re: Sharing JAXB annotated classes and context between server and client.

2011-09-30 Thread Johan Edstrom
Doing it on the client will require a bit more work…
The jaxb client is pretty smart in caching what it needs, not re-creating stuff 
and so on.



On Sep 30, 2011, at 8:19 AM, paragmehta wrote:

> Thanks, trying it on server.
> 
> Hope it makes sense to allow such a thing on the client side too.  I.e. one
> may a client to it's own server and having separate set of classes for
> client with their own JAXB customizations does not make sense.
> 
> I suppose I should create an enhancement request.
> 
> Thanks,
> Parag
> 
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/Sharing-JAXB-annotated-classes-and-context-between-server-and-client-tp4854817p4857272.html
> Sent from the cxf-user mailing list archive at Nabble.com.



Re: Sharing JAXB annotated classes and context between server and client.

2011-09-30 Thread paragmehta
Thanks, trying it on server.

Hope it makes sense to allow such a thing on the client side too.  I.e. one
may a client to it's own server and having separate set of classes for
client with their own JAXB customizations does not make sense.

I suppose I should create an enhancement request.

Thanks,
Parag

--
View this message in context: 
http://cxf.547215.n5.nabble.com/Sharing-JAXB-annotated-classes-and-context-between-server-and-client-tp4854817p4857272.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Sharing JAXB annotated classes and context between server and client.

2011-09-29 Thread Johan Edstrom
Doing it on the server is pretty easy, doing it on the client less so.

 
  
  

And you probably need to extend JAXBDataBinding


On Sep 29, 2011, at 3:50 PM, paragmehta wrote:

> Folks,
> 
> I have existing java classes annotated with JAXB annotations and customized
> JAXB context.  Am trying to expose a service using these objects over WS
> using CXF.
> 
> * How do I specify custom JAXB context settings on server.
> * For the client, I want to use same JAXB annotated classes without creating
> new ones from WSDL.  How do I do this, and how do I specify the custom JAXB
> context settings on client side.
> 
> Thanks.
> 
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/Sharing-JAXB-annotated-classes-and-context-between-server-and-client-tp4854817p4854817.html
> Sent from the cxf-user mailing list archive at Nabble.com.