on 02-04-2019 5:17 AM
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);
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.