cancel
Showing results for 
Search instead for 
Did you mean: 

How to consume SAP Document Management service using JNDI in Cloud foundry ?

boudhayan-dev
Employee
Employee
0 Kudos

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 ?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member210955
Active Participant
0 Kudos

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

https://help.sap.com/viewer/f6e70dd4bffa4b65965b43feed4c9429/Cloud/en-US/f2e91dc24832408f9c419313309...

Best Regards,

Saurav