cancel
Showing results for 
Search instead for 
Did you mean: 

How to access SAP Cloud neo Document Service in Spring-boot2 application?

0 Kudos

How to access SAP Cloud neo Document Service in Spring-boot2 ?

I tried but always getting 'EcmService' not found error while trying to lookup the registered service.

Is there any way to register 'java:comp/env/EcmService' as JNDI resource in Spring-boot2 applications.

My code is here

// Use a unique name with package semantics e.g. com.foo.MyRepository
String uniqueName = "repoName";
// Use a secret key only known to your application (min. 10 chars)
String secretKey = "key";
Session openCmisSession = null;
InitialContext ctx = new InitialContext();
String lookupName = "java:comp/env/EcmService";
EcmService ecmSvc = (EcmService) ctx.lookup(lookupName);

Accepted Solutions (0)

Answers (0)