Default library change for Cloudant auto-wiring in the Liberty Buildpack.

Share this post:

Starting with the future release of the Liberty for Java Buildpack version 3.11 the default Library for Cloudant NoSQL Database used with auto-wiring will be the Official Cloudant Liberty for Java. The current Ektorp library will still be included in the Liberty for Java Buildpack, however, a configuration setting must be changed to use it.

To use the official Cloudant Library in your application you will need to change your application code to import and use the classes from the official Cloudant library instead of Ektorp. Your pom.xml must also be updated if you are using maven.

To continue to use Ektorp and not modify your application you will just need to set up the following environment variable:

cf set-env myAppName LBP_SERVICE_CONFIG_CLOUDANTNOSQLDB “type: couchdb”

Using the current release of the Liberty for java buildpack you can start using the future default behavior by setting the following environment variable:

cf set-env myAppName LBP_SERVICE_CONFIG_CLOUDANTNOSQLDB “type: cloudant”


The following sample application makes use of auto-wiring and the Official Cloudant Library for Java:

Get Started Java – Auto-wiring branch

More stories
June 13, 2018

Elinar Takes the Mystery out of GDPR with help from IBM Cloud and Watson

Even though GDPR May 25 deadline has come and gone, many companies are still scrambling to meet compliance. Here at Elinar, we are busier than ever. Our data discover solution, AI Miner, built with Watson APIs, for use on the IBM Cloud platform, can quickly uncover mysterious data with a quick scan on your data mass for records which have privacy settings that need updating to meet GDPR compliance.

Continue reading

May 23, 2018

How to rapidly develop applications with microservices (part 1)

This is the first post in a series on how to move your team towards the best long-term cloud platform adoption decision. Since adopting a cloud platform involves a significant commitment, and implies the confirmation that comes from previous work on one or more pilot projects, the primary goal of this series is to get you to the step of defining an appropriate cloud-based pilot project for your team.

Continue reading

February 12, 2018

A/B testing using App Launch on IBM Cloud Services

Yes, its mobile, mobile everywhere!! Every business aspires to have its own mobile app, hence the need for a mobile app is rapidly growing. To combat the competition, some app owners work hard on innovation, few others on engaging the customers and some try to evaluate their marketing strategies.

Continue reading