cancel
Showing results for 
Search instead for 
Did you mean: 

convert REST api to JAX-RS and JAXB

lcavadas
Champ in-the-making
Champ in-the-making
Hi,

We are currently integrating an activity engine into our application. Since we use REST for  all client-server communication we would like to use the activiti-rest module.
We are using osgi with grizzly and jersey and so the current implementation of the REST api does not work for us.

The REST api is currently tightly bound to Restlet. I would like to propose that the rest-resources be converted to JAX-RS and JAXB and be kept on a different module of the current rest-webapp. This way both the current Restlet webapp can be kept and we can take advantage of it.

I think that a big plus for this approach is that any JAX-RS JAXB supporting Framework can be used for the REST api.

I've created an improvement ticket in JIRA for this. (http://jira.codehaus.org/browse/ACT-1118)

We would be more than happy to supply patches for this if we can agree that it is a good idea.
3 REPLIES 3

trademak
Star Contributor
Star Contributor
Hi,

Restlet should be able to run in an OSGi environment (see http://wiki.restlet.org/developers/172-restlet/267-restlet/124-restlet.html)
I don't see the direct benefit for the Activiti project of changing the code to JAX-RS and JAXB.

Best regards,

lcavadas
Champ in-the-making
Champ in-the-making
While it is true that restlet can be run on an OSGi environment we wouldn't like to add it because if we do we'll be using two different REST Frameworks in the same application.

I'm not suggesting a change in the REST framework used by the Activiti project. I'm simply trying to add the possibility of using any REST Framework instead of being forced to use Restlet.
Restlet also supports  JAX-RS and JAXB.

If you would like to follow the proposed changes, I've created a Pull Request at Github: https://github.com/lcavadas/Activiti/pull/1
I've only started it today so there isn't much done yet.

Best Regards,
Luís Serralheiro

cperrot
Champ in-the-making
Champ in-the-making
Hello

I am looking for a jersey implementation as well which automatically generates the application.wadl files based on tags in the java source.
generating client stubs from the wadl file is not possible as of now, unless I haven't found it yet.

Regards

Cedric
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.