1

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 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.