Hi,

I made some changes last night regarding the NXP Web Service stack.

We can now define several Web Services in different bundles that will
share the same remoting sessions. It means that once you receive a
remoting session from a given Web Service you can reuse it with the others.


How does it work ?

We got a Nuxeo Runtime component exposed as a PF service (which means
available as a session bean as well) which stores and manage the
remoting sessions.

See :

http://svn.nuxeo.org/trac/nuxeo/browser/org.nuxeo.ecm.platform/trunk/nuxeo-platform/src/main/java/org/nuxeo/ecm/platform/ws/session/WSRemotingSessionManagerImpl.java

Each Web Service which aims at taking advantage of the shared remoting
sessions must extend an abstract class that defines the basic API for
connecting and disconnecting against NXP.

See the abstract class here :

http://svn.nuxeo.org/trac/nuxeo/browser/org.nuxeo.ecm.platform/trunk/nuxeo-platform/src/main/java/org/nuxeo/ecm/platform/ws/AbstractNuxeoWebService.java

And the base API :

http://svn.nuxeo.org/trac/nuxeo/browser/org.nuxeo.ecm.platform/trunk/nuxeo-platform-api/src/main/java/org/nuxeo/ecm/platform/api/ws/BaseNuxeoWebService.java

Note the abstract class already defines the methods as WebMethod.

You can check several examples of implementation in the trunk :

 o NuxeoRemotingBean : (Nuxeo Core and Directory related Web Service)

http://svn.nuxeo.org/trac/nuxeo/browser/org.nuxeo.ecm.platform/trunk/nuxeo-platform/src/main/java/org/nuxeo/ecm/platform/ws/NuxeoRemotingBean.java

 o WSAuditBean : (NXAudit related Web Service)

http://svn.nuxeo.org/trac/nuxeo/browser/org.nuxeo.ecm.platform/trunk/nuxeo-platform-audit-client/src/main/java/org/nuxeo/ecm/platform/audit/ws/WSAuditBean.java

 o WSIntuitionBean : (Sinequa Intuition integration)

This one is a little bit different since it aggregates the API of the 2
Web Services above. The principle remains the same though. (i.e : using
the abstract web service). The wrapping is done at EJB remoting level in
this case.

See :
http://svn.nuxeo.org/trac/nuxeo/browser/org.nuxeo.ecm.platform/trunk/nuxeo-platform-intuition/src/main/java/org/nuxeo/ecm/platform/intuition/ws/WSIntuitionBean.java

As well, see how the bundle is really simple. Nothing to deploy apart
from the bean properly annotated.

That's it for now. If you got any questions do not hesitate.

Cheers,

        J.
-- 
Julien Anguenot | Nuxeo R&D (Paris, France)
Open Source ECM - http://www.nuxeo.com
Nuxeo 5 : http://www.nuxeo.org
Mobile: +33 (0) 6 72 57 57 66

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to