Reusing CXF DataBindings in the JAX-RS implementation
Hi Until now it's not been possible to reuse existing CXF DataBinding implementations in CXF JAX-RS. For example, the JAX-RS impl provides its own versions of JAXB/Aegis/XMlBeans databindings by implementing JAX-RS MessageBodyProviders. Resolving this issue has been on the map for a while and we've also had a chat with Dan on IRC recently. I've just committed the initial code which makes it possible for users just to reuse the existing CXF DataBindings which is quite promising given that CXF DataBindings are very well stressed and tested. Those users who use JAXWS JAXRS will likely find it of use, as well as JAX-RS users who might spot some (temp) limitations in the CXF JAXRS message body providers. Here's how I've implemented it at the moment. If users register a databinding bean then what happens is that it will simply be wrapped as a JAXRS MessageBodyReader/Writer and registered as a JAX-RS provider. Its MessageBodyWriter.writeTo and MessageBodyWriter.readFrom delegate to DataBinding DataWriter/DataReader respectively. I think this approach works quite well but there's something I reckon may need to be improved. Particularly, in order to make JAX-RS resource classes' return/input classes for all the resource methods known to DataBinding implementations the JAXRS model classes like ClassResourceInfo OperationResourceInfo are being temporarily converted into a WSDL-centric Service/ServiceInfo/MessageInfp/etc model so that DataBinding.initialize(Service s) can be called. This in itself might become useful later on if we were to decide on supporting say WSDL2 but for the purpose of reusing the DataBindings it does not necessarily represents the best approach. It can get tricky for JAX-RS resources be represented well as WSDL-centric ones to meet different expectations of different bindings, something I found during the initial work. JAXRS resource methods might have parameters representing say queries, alongside with request bodies, etc. Perhaps the better option is for every DataBinding implementation is to have a method like setAllClasses(SetClass? classes) or setTypeInfo(MapClass?, Type info) which would represent an alternative option for initializing a databinding. Every CXF DataBinding would have to be updated slightly to use those classes instead of Service to gety initialized. JAXRS will create a required set/map and reflectively call such a method. This method might even make it into DataBinding interface if it's assumed that no users are directly interacting with DataBinding interfaces. Thoughts ? thanks, Sergey
[VOTE] Release CXF 2.0.12
This is a vote to release CXF 2.0.12 Once again, there have been a bunch of bug fixes and enhancements that have been done compared to the 2.0.11 release. Over 32 JIRA issues are resolved for 2.0.12 *Note:* as announced earlier this will be the last 2.0.x release of Apache CXF. Users are encouraged to start migrating to 2.2.x. List of issues: https://issues.apache.org/jira/browse/CXF/fixforversion/12313903 The Maven staging area is at: https://repository.apache.org/content/repositories/cxf-staging-001/ The distributions are in: https://repository.apache.org/content/repositories/cxf-staging-001/org/apache/cxf/apache-cxf/2.0.12/ This release is tagged at: http://svn.apache.org/repos/asf/cxf/tags/cxf-2.0.12 Here is my +1. The vote will be open here for at least 72 hours. -- Daniel Kulp dk...@apache.org http://www.dankulp.com/blog signature.asc Description: This is a digitally signed message part.
Re: [VOTE] Release CXF 2.0.12
I think I'm now allowed to cast my +1... Cheers Alessio Daniel Kulp wrote: This is a vote to release CXF 2.0.12 Once again, there have been a bunch of bug fixes and enhancements that have been done compared to the 2.0.11 release. Over 32 JIRA issues are resolved for 2.0.12 *Note:* as announced earlier this will be the last 2.0.x release of Apache CXF. Users are encouraged to start migrating to 2.2.x. List of issues: https://issues.apache.org/jira/browse/CXF/fixforversion/12313903 The Maven staging area is at: https://repository.apache.org/content/repositories/cxf-staging-001/ The distributions are in: https://repository.apache.org/content/repositories/cxf-staging-001/org/apache/cxf/apache-cxf/2.0.12/ This release is tagged at: http://svn.apache.org/repos/asf/cxf/tags/cxf-2.0.12 Here is my +1. The vote will be open here for at least 72 hours. -- Alessio Soldano Web Service Lead, JBoss
Re: [VOTE] Release CXF 2.0.12
+1 Jeff On Jul 29, 2009, at 11:36 AM, Daniel Kulp wrote: This is a vote to release CXF 2.0.12 Once again, there have been a bunch of bug fixes and enhancements that have been done compared to the 2.0.11 release. Over 32 JIRA issues are resolved for 2.0.12 *Note:* as announced earlier this will be the last 2.0.x release of Apache CXF. Users are encouraged to start migrating to 2.2.x. List of issues: https://issues.apache.org/jira/browse/CXF/fixforversion/12313903 The Maven staging area is at: https://repository.apache.org/content/repositories/cxf-staging-001/ The distributions are in: https://repository.apache.org/content/repositories/cxf-staging-001/org/apache/cxf/apache-cxf/2.0.12/ This release is tagged at: http://svn.apache.org/repos/asf/cxf/tags/cxf-2.0.12 Here is my +1. The vote will be open here for at least 72 hours. -- Daniel Kulp dk...@apache.org http://www.dankulp.com/blog
[VOTE] Release CXF 2.1.6
This is a vote to release CXF 2.1.6 Once again, there have been a bunch of bug fixes and enhancements that have been done compared to the 2.1.5 release. Over 74 JIRA issues are resolved for 2.1.6 List of issues: The Maven staging area is at: https://repository.apache.org/content/repositories/cxf-staging-002/ The distributions are in: https://repository.apache.org/content/repositories/cxf-staging-002/org/apache/cxf/apache-cxf/2.1.6/ This release is tagged at: http://svn.apache.org/repos/asf/cxf/tags/cxf-2.1.6 Here is my +1. The vote will be open here for at least 72 hours. -- Daniel Kulp dk...@apache.org http://www.dankulp.com/blog signature.asc Description: This is a digitally signed message part.
[VOTE] Release CXF 2.2.3
his is a vote to release CXF 2.2.3 Once again, there have been a bunch of bug fixes and enhancements that have been done compared to the 2.2.2 release. Over 86 JIRA issues are resolved for 2.2.3. List of issues: https://issues.apache.org/jira/browse/CXF/fixforversion/12313983 The Maven staging area is at: https://repository.apache.org/content/repositories/cxf-staging-003/ The distributions are in: https://repository.apache.org/content/repositories/cxf-staging-003/org/apache/cxf/apache-cxf/2.2.3 This release is tagged at: http://svn.apache.org/repos/asf/cxf/tags/cxf-2.2.3 Here is my +1. The vote will be open here for at least 72 hours. -- Daniel Kulp dk...@apache.org http://www.dankulp.com/blog signature.asc Description: This is a digitally signed message part.
Re: [VOTE] Release CXF 2.1.6
Forgot the link to the list of issues: https://issues.apache.org/jira/browse/CXF/fixforversion/12313902 On Wed July 29 2009 1:54:05 pm Daniel Kulp wrote: This is a vote to release CXF 2.1.6 Once again, there have been a bunch of bug fixes and enhancements that have been done compared to the 2.1.5 release. Over 74 JIRA issues are resolved for 2.1.6 List of issues: The Maven staging area is at: https://repository.apache.org/content/repositories/cxf-staging-002/ The distributions are in: https://repository.apache.org/content/repositories/cxf-staging-002/org/apac he/cxf/apache-cxf/2.1.6/ This release is tagged at: http://svn.apache.org/repos/asf/cxf/tags/cxf-2.1.6 Here is my +1. The vote will be open here for at least 72 hours. -- Daniel Kulp dk...@apache.org http://www.dankulp.com/blog signature.asc Description: This is a digitally signed message part.
Re: [VOTE] Release CXF 2.1.6
+1 Cheers Alessio Daniel Kulp wrote: This is a vote to release CXF 2.1.6 Once again, there have been a bunch of bug fixes and enhancements that have been done compared to the 2.1.5 release. Over 74 JIRA issues are resolved for 2.1.6 List of issues: The Maven staging area is at: https://repository.apache.org/content/repositories/cxf-staging-002/ The distributions are in: https://repository.apache.org/content/repositories/cxf-staging-002/org/apache/cxf/apache-cxf/2.1.6/ This release is tagged at: http://svn.apache.org/repos/asf/cxf/tags/cxf-2.1.6 Here is my +1. The vote will be open here for at least 72 hours. -- Alessio Soldano Web Service Lead, JBoss
Re: [VOTE] Release CXF 2.2.3
+1 Alessio Daniel Kulp wrote: his is a vote to release CXF 2.2.3 Once again, there have been a bunch of bug fixes and enhancements that have been done compared to the 2.2.2 release. Over 86 JIRA issues are resolved for 2.2.3. List of issues: https://issues.apache.org/jira/browse/CXF/fixforversion/12313983 The Maven staging area is at: https://repository.apache.org/content/repositories/cxf-staging-003/ The distributions are in: https://repository.apache.org/content/repositories/cxf-staging-003/org/apache/cxf/apache-cxf/2.2.3 This release is tagged at: http://svn.apache.org/repos/asf/cxf/tags/cxf-2.2.3 Here is my +1. The vote will be open here for at least 72 hours. -- Alessio Soldano Web Service Lead, JBoss
Re: [VOTE] Release CXF 2.1.6
+1 Jeff On Jul 29, 2009, at 11:54 AM, Daniel Kulp wrote: This is a vote to release CXF 2.1.6 Once again, there have been a bunch of bug fixes and enhancements that have been done compared to the 2.1.5 release. Over 74 JIRA issues are resolved for 2.1.6 List of issues: The Maven staging area is at: https://repository.apache.org/content/repositories/cxf-staging-002/ The distributions are in: https://repository.apache.org/content/repositories/cxf-staging-002/org/apache/cxf/apache-cxf/2.1.6/ This release is tagged at: http://svn.apache.org/repos/asf/cxf/tags/cxf-2.1.6 Here is my +1. The vote will be open here for at least 72 hours. -- Daniel Kulp dk...@apache.org http://www.dankulp.com/blog
Re: [VOTE] Release CXF 2.2.3
+1 Jeff On Jul 29, 2009, at 11:56 AM, Daniel Kulp wrote: his is a vote to release CXF 2.2.3 Once again, there have been a bunch of bug fixes and enhancements that have been done compared to the 2.2.2 release. Over 86 JIRA issues are resolved for 2.2.3. List of issues: https://issues.apache.org/jira/browse/CXF/fixforversion/12313983 The Maven staging area is at: https://repository.apache.org/content/repositories/cxf-staging-003/ The distributions are in: https://repository.apache.org/content/repositories/cxf-staging-003/org/apache/cxf/apache-cxf/2.2.3 This release is tagged at: http://svn.apache.org/repos/asf/cxf/tags/cxf-2.2.3 Here is my +1. The vote will be open here for at least 72 hours. -- Daniel Kulp dk...@apache.org http://www.dankulp.com/blog
RE: [VOTE] Release CXF 2.0.12
+1 Cheers, Sergey -Original Message- From: Daniel Kulp [mailto:dk...@apache.org] Sent: 29 July 2009 18:36 To: dev@cxf.apache.org Subject: [VOTE] Release CXF 2.0.12 This is a vote to release CXF 2.0.12 Once again, there have been a bunch of bug fixes and enhancements that have been done compared to the 2.0.11 release. Over 32 JIRA issues are resolved for 2.0.12 *Note:* as announced earlier this will be the last 2.0.x release of Apache CXF. Users are encouraged to start migrating to 2.2.x. List of issues: https://issues.apache.org/jira/browse/CXF/fixforversion/12313903 The Maven staging area is at: https://repository.apache.org/content/repositories/cxf-staging-001/ The distributions are in: https://repository.apache.org/content/repositories/cxf-staging-001/org/a pache/cxf/apache-cxf/2.0.12/ This release is tagged at: http://svn.apache.org/repos/asf/cxf/tags/cxf-2.0.12 Here is my +1. The vote will be open here for at least 72 hours. -- Daniel Kulp dk...@apache.org http://www.dankulp.com/blog
RE: [VOTE] Release CXF 2.2.3
+1 Cheers, Sergey -Original Message- From: Daniel Kulp [mailto:dk...@apache.org] Sent: 29 July 2009 18:56 To: dev@cxf.apache.org Subject: [VOTE] Release CXF 2.2.3 his is a vote to release CXF 2.2.3 Once again, there have been a bunch of bug fixes and enhancements that have been done compared to the 2.2.2 release. Over 86 JIRA issues are resolved for 2.2.3. List of issues: https://issues.apache.org/jira/browse/CXF/fixforversion/12313983 The Maven staging area is at: https://repository.apache.org/content/repositories/cxf-staging-003/ The distributions are in: https://repository.apache.org/content/repositories/cxf-staging-003/org/a pache/cxf/apache-cxf/2.2.3 This release is tagged at: http://svn.apache.org/repos/asf/cxf/tags/cxf-2.2.3 Here is my +1. The vote will be open here for at least 72 hours. -- Daniel Kulp dk...@apache.org http://www.dankulp.com/blog
RE: [VOTE] Release CXF 2.1.6
+1 Cheers, Sergey -Original Message- From: Daniel Kulp [mailto:dk...@apache.org] Sent: 29 July 2009 18:54 To: dev@cxf.apache.org Subject: [VOTE] Release CXF 2.1.6 This is a vote to release CXF 2.1.6 Once again, there have been a bunch of bug fixes and enhancements that have been done compared to the 2.1.5 release. Over 74 JIRA issues are resolved for 2.1.6 List of issues: The Maven staging area is at: https://repository.apache.org/content/repositories/cxf-staging-002/ The distributions are in: https://repository.apache.org/content/repositories/cxf-staging-002/org/a pache/cxf/apache-cxf/2.1.6/ This release is tagged at: http://svn.apache.org/repos/asf/cxf/tags/cxf-2.1.6 Here is my +1. The vote will be open here for at least 72 hours. -- Daniel Kulp dk...@apache.org http://www.dankulp.com/blog
Re: [VOTE] Release CXF 2.1.6
+1 On Thu, Jul 30, 2009 at 2:55 AM, Sergey Beryozkin sbery...@progress.comwrote: +1 Cheers, Sergey -Original Message- From: Daniel Kulp [mailto:dk...@apache.org] Sent: 29 July 2009 18:54 To: dev@cxf.apache.org Subject: [VOTE] Release CXF 2.1.6 This is a vote to release CXF 2.1.6 Once again, there have been a bunch of bug fixes and enhancements that have been done compared to the 2.1.5 release. Over 74 JIRA issues are resolved for 2.1.6 List of issues: The Maven staging area is at: https://repository.apache.org/content/repositories/cxf-staging-002/ The distributions are in: https://repository.apache.org/content/repositories/cxf-staging-002/org/a pache/cxf/apache-cxf/2.1.6/https://repository.apache.org/content/repositories/cxf-staging-002/org/a%0Apache/cxf/apache-cxf/2.1.6/ This release is tagged at: http://svn.apache.org/repos/asf/cxf/tags/cxf-2.1.6 Here is my +1. The vote will be open here for at least 72 hours. -- Daniel Kulp dk...@apache.org http://www.dankulp.com/blog
Re: [VOTE] Release CXF 2.0.12
+1, Willem Daniel Kulp wrote: This is a vote to release CXF 2.0.12 Once again, there have been a bunch of bug fixes and enhancements that have been done compared to the 2.0.11 release. Over 32 JIRA issues are resolved for 2.0.12 *Note:* as announced earlier this will be the last 2.0.x release of Apache CXF. Users are encouraged to start migrating to 2.2.x. List of issues: https://issues.apache.org/jira/browse/CXF/fixforversion/12313903 The Maven staging area is at: https://repository.apache.org/content/repositories/cxf-staging-001/ The distributions are in: https://repository.apache.org/content/repositories/cxf-staging-001/org/apache/cxf/apache-cxf/2.0.12/ This release is tagged at: http://svn.apache.org/repos/asf/cxf/tags/cxf-2.0.12 Here is my +1. The vote will be open here for at least 72 hours.
Re: [VOTE] Release CXF 2.1.6
+1 Willem Daniel Kulp wrote: This is a vote to release CXF 2.1.6 Once again, there have been a bunch of bug fixes and enhancements that have been done compared to the 2.1.5 release. Over 74 JIRA issues are resolved for 2.1.6 List of issues: The Maven staging area is at: https://repository.apache.org/content/repositories/cxf-staging-002/ The distributions are in: https://repository.apache.org/content/repositories/cxf-staging-002/org/apache/cxf/apache-cxf/2.1.6/ This release is tagged at: http://svn.apache.org/repos/asf/cxf/tags/cxf-2.1.6 Here is my +1. The vote will be open here for at least 72 hours.
Re: [VOTE] Release CXF 2.2.3
+1, Willem Daniel Kulp wrote: his is a vote to release CXF 2.2.3 Once again, there have been a bunch of bug fixes and enhancements that have been done compared to the 2.2.2 release. Over 86 JIRA issues are resolved for 2.2.3. List of issues: https://issues.apache.org/jira/browse/CXF/fixforversion/12313983 The Maven staging area is at: https://repository.apache.org/content/repositories/cxf-staging-003/ The distributions are in: https://repository.apache.org/content/repositories/cxf-staging-003/org/apache/cxf/apache-cxf/2.2.3 This release is tagged at: http://svn.apache.org/repos/asf/cxf/tags/cxf-2.2.3 Here is my +1. The vote will be open here for at least 72 hours.