How to setup cosmos db with AEM as Cloud? | Community
Skip to main content
jezwn
Level 5
November 30, 2023

How to setup cosmos db with AEM as Cloud?

I was working around setting up DB connection with cosmos DB. Adding the maven dependencies was not working, and I tried the OSGi conversion of the dependency.
<!-- https://mvnrepository.com/artifact/com.azure/azure-cosmos -->
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-cosmos</artifactId>
<version>4.52.0</version>
</dependency>
The build is happening fine, but the connectivity is not happening to the cosmos. I believe I removed some imports from the manifest.mf file.
Does anyone have an OSGi bundle for the cosmos jar which is functional, or is there a better way to make this work?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

6 replies

kautuk_sahni
Employee
December 4, 2023

@jezwn Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Translate
Kautuk Sahni
jezwn
jezwnAuthor
Level 5
December 20, 2023

@kautuk_sahni I couldn't figure out a viable solution yet. I even tried using the bnd tool to convert the jar to osgi, and the osgi conversion was successful, but the execution was getting failed.

Translate
partyush
New Participant
December 1, 2023

@jezwn 

 

This might be helpful for your case, Please check this blog 

https://blog.developer.adobe.com/how-cif-integrates-with-adobe-commerce-and-third-party-commerce-solutions-5a5efb8da2a0

 

 

Thanks  🙂

Translate
jezwn
jezwnAuthor
Level 5
December 1, 2023

My usecase is only to use the cosmosDB as a storage solution and retrieve the data to AEM as required. I would not need any ecommerce functionalities and the scope is limited. 

Translate
Jagadeesh_Prakash
New Participant
November 30, 2023

@jezwn  can you let me know the business use case for cosmo db ? I am not sure if any one did an integration with this DB. Worth trying reaching out to adobe support.

Translate
jezwn
jezwnAuthor
Level 5
December 1, 2023

@jagadeesh_prakash I can't unfortunately share the specifics here, but I have some specific data that is being generated from AEM to be stored on cosmos DB, using it as a storage solution. I would additionally want to retrieve the data and display in an AEM page as well.

Translate