I've java code in eclipse and I've done all the set up required between eclipse and IBM bluemix cloudant service I am not sure how to update my code to enable cloudant in eclipse can someone please help ?
相关问题
- Bluemix Analytics for Apache Spark log file inform
- Not able to push my local app to bluemix
- How to extract current date in watson conversation
- Can I use IBM Watson services without Bluemix?
- Debug nodejs app in CF
相关文章
- Is there an npm module to modify a pdf file in nod
- Kubernetes Persistent Volume Claim mounted with wr
- how to order SoftLayer_Virtual_ReservedCapacityGro
- cloudant python https connection pooling?
- Can I call the Bluemix message hub service from Py
- What is the ECMAScript version supported in Clouda
- GYP ERR! build error. stack Error: 'make'
- Unable to run bms-samples-cordova-hellopush - bms_
You need to use VCAP_SERVICES env variable used in bluemix like below:
You may use the Bluemix config parser library to automatically parse the VCAP_SERVICES env variable (https://github.com/icha024/bluemix-config-parser)
It simplifies the messy code into...
Then you can create a Cloudant client from it as usual:
you need to add a piece of code in CloudantClient.java file under source directory of your project. Please add these lines in CloudantClient class:
you can also put this piece of code in a try catch loop as well.
I hope it works!