Posts Tagged ‘CXF’

JC-Rest & Enunciate

Wednesday, November 12th, 2008

Introduction

A couple of weeks ago one of our clients asked me to prepare some documentation on the CQ/JCR RESTful services I had created for them.

I had previously came across this post on TSS about the latest release of enunciate. Unfortunately, I quickly forgot. Then Bill reminded me about it a couple days ago. He is working on a REST/Flex project and he too came across it. Its all coming together now.

enunciate

While enunciate can do a variety of things, I was only interested in the generated JAX-RS/JAXB documentation (HTML). My personal opinion is that the generated documentation is not only useful but also well designed. As a colleague commented, it is pretty. Here is a screenshot of the documentation for JC-Rest.

Read the rest of this entry »

JC-Rest: RESTful JCR Services & Repository Browser

Thursday, October 9th, 2008

I’m happy to announce the initial release of JC-Rest. This is an application that provides a set of RESTful services for accessing content in a JCR repository. These services can return XML, JSON, ATOM, or even HTML via custom FreeMarker templates.

http://code.google.com/p/jc-rest/

Back in June I wrote a post that talked about building RESTful services using CXF (JAX-RS), Spring, Spring Modules (JCR), and the JCR API. To sum it up, I was working with a client who was using CQ. It didn’t take long before several other applications all required access to the CQ content. Since CQ doesn’t provide an easy means to do this, I wrote a set of highly customized services to return the content. The services were written to meet the requirements of each individual client application that required specific content.

When all was said and done, I realized there was quite a bit of redundancy. Not only technically, but logically as well. I came to the conclusion that it would have been better to build a smaller set of abstract, generalized services. And then perhaps allow for some customization on top them. That is what led me to build JC-Rest.

Read the rest of this entry »