Expand my Community achievements bar.

SOLVED

AEM Connecting to MSRP or an external Mongo instance

Avatar

Level 1

Hello

Are there any docs on how to connect to an external mongo instance using AEM? We are on 6.3. We have a need to store some user info and the thought is to either store it in a separate Mongo instance or on the MSRP we have for communities. What I can't figure is - how to connect to either mongo instance to save/read that data.

Any pointers?

Thanks,

1 Accepted Solution

Avatar

Correct answer by
Employee

You don't really have to know the underlying driver details to store a new information as UGC. You can do so by using SCF and SRP APIs. Follow a sample (a bit old from AEM 6.1 days) available here but good to start with.

check this also - Social Component Framework

View solution in original post

3 Replies

Avatar

Level 1

I did. Seemed to me they apply to either a) using Mongo instead of TarMK or b) using Mongo for Communities.

We do have the latter setup (for communities) done already. But now we are working on storing some additional information to the database.. say end-user preferences. The question I'm trying to figure out is how do I write my custom java code to connect to this mongo instance. Driver details and such.

Avatar

Correct answer by
Employee

You don't really have to know the underlying driver details to store a new information as UGC. You can do so by using SCF and SRP APIs. Follow a sample (a bit old from AEM 6.1 days) available here but good to start with.

check this also - Social Component Framework