Hi Assaf,

We have a similar task (accessing a nuxeo server from a servlet on a remote machine) that will be done until the end of this week or next week.
I will notify you when this task will be done.
As part of this task I will create a generic servlet that you and others will be able to use to connect to a remote nuxeo server.

The ideea in implementing such a servlet is to adapt the nuxeo shell client (see https://svn.nuxeo.org/nuxeo/org.nuxeo.ecm.client)
to be loaded from a servlet.
In practice you need to put something on the disk the nuxeo shell application (so that the servlet can access it) The client application folder contains required nuxeo bundles (jars) as for example various nuxeo API, nuxeo runtime and other utilisties
and also third party libraru needed by nuxeo.
The servlet will load the nuxeo runtime using the RuntimeLoader class and then it will connect to nuxeo server using NuxeoClient class. This class is able to download required configuration (service bindings, streaming server location etc) from the remote server
and will auto configure the local runtime.
This way you don't need anymore writing xml configuration files

Regarding the project nuxeo-api-sample it is outdated and need to be refactored to use the NuxeoClient class to avoid writing xml configuration files.

Regards,
Bogdan

Assaf Cohen wrote:
Hello Bogdan,
I've been following Nuxeo for many months now (since before 5.0.0.RC release) and the ecm mailing list. I've read through all the documents on the website and what's available in the not-yet-finished 'nuxeo-book'. I've successfully built the sample empty project and I agree that it should be easy and efficient to build extensions for the Nuxeo platform this way. I find great interest in Nuxeo and I believe in its potential (both product and company). But I've been trying over and over fruitlessly to use the remote API from another WAR deployed on the same or another J2EE server (Tomcat as an example). The nuxeo-book is empty on this point and the JIRA and mailing list have only puzzling discussions, mostly ending the same way - with a reference to the 'nuxeo-api-sample'. I've noticed that so far you've been the most knowledgeable and helpful person on these issues. Being a real novice with J2EE deployment issues myself and seeing that there are enough other users with similar issues (this guy for instance is trying something similar on Tomcat: http://jira.nuxeo.org/browse/NXP-1503), I've decided it's time to ask for advice: Currently, I get a .jar by building 'nuxeo-api-sample' but I'd like to know how to make a deployable WAR out of that sample. Would it be possible to document the suggested process of creating such a standalone WAR with all the needed .jars and xml descriptors, from the ground up in order to have access to nuxeo remote API from another web app (lets say: a minimal JSP EL script on Tomcat, for simplicity).
So far I get countless exceptions and I'm pretty much stuck.
Regards,
Assaf

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to