Your question is similar to this: "I have a MYSQL database that I create a table called CUSTOMERS inside, but if I open MYSQL connection how can i get it to tell me where I store my customers." See, you have it backwards. Your DB never tells you that. Perhaps you just want a way for MongoDB to list all its objects it contains, but this has nothing to do with JCR and is in general not ever neede for the same reason you'd never need an RDBMS to tell you what table names you use.
Best regards, Clay Ferguson [email protected] On Mon, May 16, 2016 at 1:43 AM, techie2k <[email protected]> wrote: > Hi, > > I have created jackrabbit oak repository with mongodb as nodestore. > > MongoConnection connection = MongoUtils.getConnection(); > database = connection.getDB(); > documentNodeStore = new > DocumentMK.Builder().setMongoDB(database).getNodeStore(); > > Jcr jcr = new Jcr(new Oak(documentNodeStore)).with(getSecurityProvider()); > Repository repository = getIndexConfig(jcr).createRepository(); > > > But what api will provide me the existing repository, when I supply > connection of MongoDB? > Hardly finding a clue. > Appreciate your help on this. > > Using Oak 1.4.1 and MongoDB 3.2 > > > > > > > > > -- > View this message in context: > http://jackrabbit.510166.n4.nabble.com/Get-Repository-from-OAK-tp4664045.html > Sent from the Jackrabbit - Users mailing list archive at Nabble.com. >
