-3

I used java liberty with cloudant in watson services. And i got my starter code as a zip file.
I have sample code how to connect it to cloudant no-sql db. Please explain me? I used java liberty with cloudant no-sql. I have starter code. How to connect my java code to no-sql?

chinna_82
  • 6,353
  • 17
  • 79
  • 134
SaiCharan
  • 11
  • 3

1 Answers1

0

Once you've bound your Cloudant service instance to your Java Liberty application you have basically two ways to interact with the Cloudant NoSQL DB:

The Client Libraries are basically wrappers of simple API calls, they only provide you an additional level of abstraction avoiding you to deal with the requests and responses.

Since you are working on a Java application I'd recommend to use the java-cloudant library, I've used it in the past and it works fine. Please take a look at the README to understand how to install and use it. The Getting Started section shows use how to use the CloudantClient Class, that is the main Object you'll have to use.

Umberto Manganiello
  • 3,213
  • 9
  • 16
  • Thanks for your help. And i have done with java-cloudant library and i got code of that in a zip file. Now i have a java code of cloudant db in eclipse. Now how i have to include my java application code with cloudant...! – SaiCharan Jun 24 '16 at 11:28