cancel
Showing results for 
Search instead for 
Did you mean: 

Spring Rest or Restlet for Activiti

hemamalini
Champ in-the-making
Champ in-the-making
Which is suitable for Exposing Activiti Engine as a REST service in production? i want to expose Activiti Engine like the Activiti REST application. Which is the best way to do - Spring Rest or Restlet? I deployed a sample Activiti Rest application  using restlet framework. When i access the service via REST client, i am getting 1001 communication error (https). but when i deploy the same in my local tomcat server (http) its working good. How can i resolve this
5 REPLIES 5

jbarrez
Star Contributor
Star Contributor
The Activiti REST API is implemented with Restlet. However, internally at Alfresco we do use Spring MVC a lot. It's a matter of taste.

1001 communication error is something I don't know.

hemamalini
Champ in-the-making
Champ in-the-making
How you handle Rest Client for https? will u use certificate authetication mechanism in client?

trademak
Star Contributor
Star Contributor
We use the default SSL support of Restlet. Which means that you install a certificate on the REST server only.

Best regards,

hemamalini
Champ in-the-making
Champ in-the-making
Thanks a lot. So the certificate has to be set in the REST Server like
<code>       
parameters.add("sslContextFactory",
        "org.restlet.ext.ssl.PkixSslContextFactory");
        parameters.add("keystorePath", "\<path\>serverX.jks");
        parameters.add("keystorePassword", "password");
        parameters.add("keyPassword", "password");
        parameters.add("keystoreType", "JKS");
</code>

trademak
Star Contributor
Star Contributor
that's correct