On Thu, Mar 6, 2014 at 12:15 PM, Chathura Ekanayake <[email protected]>wrote:
> > Hi All, > > Activiti has a Restlet based comprehensive REST API to expose all BPMN > related functions. As we are planning to have a REST API for BPMN, we can > integrate this Activiti REST module in Carbon. Could I get feedback on the > following items regarding this integration: > > Restlet vs JAX-RS: > Should we integrate the Restlet based Activiti API or should we write a > new JAX-RS based REST module? I think it is better to use the Activiti REST > module as it allows us to migrate easily with new Activiti versions. > IMHO if Activiti REST module can cater all of our BPMN requirements then rewriting is not required at least at this point. > > Integrating the Activiti Restlet based API: > If we decide to integrate the Activiti REST module, we have to expose the > Restlet servlet to handle REST requests. One option is to register this > servlet in repository/conf/tomcat/web.xml, which exposes this on the same > port as admin services. However, we have to keep these servlet registration > entries in the web.xml, even though the BPMN component is not deployed. > Another option is to start a separate server (if this is possible in > Carbon) for Activiti REST and register the Restlet servlet in that server. > Can't we just deploy above module as a web application with own context path as mention in this post[1] ? If you look at OAuth endpoint in IS/APIM we used this approach additionally some of future AS integration will use this approach. [1] - http://bpmn20inaction.blogspot.com/2013/02/activiti-in-action-updates-part-1.html Thanks ! > > Thoughts... > > Regards, > Chathura > > > -- Sagara Gunathunga Senior Technical Lead; WSO2, Inc.; http://wso2.com V.P Apache Web Services; http://ws.apache.org/ Linkedin; http://www.linkedin.com/in/ssagara Blog ; http://ssagara.blogspot.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
