Is there a way to check java to documentDB connectivity without having to register on Azure? It will be great help even in case I can connect and select some data.
1 Answer
You don't have to be an Azure subscription owner/admin to use DocumentDB, but you still need a DocumentDB database account in Azure (there's no database you can install locally). You can then grab the SDK here and connect with code similar to:
DocumentClient documentClient = new DocumentClient(
DOCDB_ENDPOINT,
DOCDB_ACCESS_KEY,
ConnectionPolicy.GetDefault(),
ConsistencyLevel.Session);
From there, you can programmatically create databases and collections, and execute various CRUD operations.