How To use Nuxeo via JAVA API?

I am trying to use JAVA API of Nuxeo in serve-side:

My scenario is: Application Server Wildfly Nuxeo deployed as static war together my application that is another war. I have added Nuxeo API in my WAR (Interfaces) and I tried the following code:

CoreSession session = Framework.getService(CoreSession.class);

The runtime in the Framework class is not initialized.

What do you suggest for me?

ty in advance,

0 votes

1 answers



You can't proceed like this. WARs have isolated classpath unless you're using cross context.

1 votes

Indeed, I choose another approach, I'm creating a new bundle to create new Nuxeo APIs following this guide: