on 11-09-2021 7:18 AM
Hi,
I have a use case where I need to consume SAP Document Management service (CF) using JNDI in Cloud foundry environment. How can this be achieved ?
In the Neo offering of SAP Document service , it was made possible by the following code snippets -
web.xml
<resource-ref>
<res-ref-name>EcmService</res-ref-name>
<res-type>com.sap.ecm.api.EcmService</res-type>
</resource-ref>
Java
protected static final String LOOKUP_NAME = "java:comp/env/EcmService";
private Session getSession(DocumentRepository repository) throws CitRestException {
try {
EcmService ecmService = (EcmService) helperClass.getInitialContext().lookup(LOOKUP_NAME);
return connect(ecmService, repository);
} catch (NamingException e) {
throw new CitRestException(e);
}
}
How can I adapt the same in Cloud foundry with the new SAP Document Management Service ?
Hi Boudhayan,
You need to access the service from your consuming application through HTTP.
You can call the rest APIs directly or a can use the open sourceCMIS client libraries available.
Please find the help documentation here
Best Regards,
Saurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.