Web services for Nuxeo 5.8 using tomcat 7
I'm in the process of upgrading from nuxeo version 5.3 -> 5.8. We have switches from using jboss 4 to Tomcat/7.0.42. We have a number of webservices endpoints that were defined in the OSGI-INF/deployment-fragment.xml for a project. eg.
<endpoint name="mywebservice" implementation="com.MyWebServiceBean" url-pattern="/webservices/mywebservice" />
(I've been following the documentation here) http://doc.nuxeo.com/display/public/NXDOC58/Building+a+SOAP+based+WebService+in+Nuxeo
I've noticed in the code for the NuxeoRemotingBean you have different setup for the web service.
<endpoint name="nuxeoremoting" address="/nuxeoremoting" implementor="org.nuxeo.ecm.platform.ws.NuxeoRemotingBean" />
Which is the correct way to implement web services in nuxeo 5.8 on tomcat?
If both are valid what is difference between the two?