WASdev / tool.accelerate.core

No further updates will be made to this repository
Apache License 2.0
10 stars 18 forks source link

Add Cloudant/Couch technology #136

Open rvennam opened 7 years ago

rvennam commented 7 years ago

I want starter code that is configured to talk to Cloudant database. This involves grabbing all the ektorp jars and setting up the server.xml with the right features and shared lib definition.

See this: https://github.com/IBM-Bluemix/java-cloudant

NottyCode commented 7 years ago

Why wouldn't you want to use the java cloudant api?

rvennam commented 7 years ago

I was trying to stay consistent with Liberty CF on Bluemix. I guess the real problem is with the liberty buildpack in Bluemix. If it detects a Cloudant service is bound to a Liberty application, it will automatically generate a server.xml with couchdb feature and a large set of jars as a shared libraries. If the users packages the official java-cloudant library in their war, it causes class conflicts.

This work was done before java-cloudant library existed. We need to update the liberty buildpack to not do the auto-configuration when the cloudant libs are provided.

The buildpack adding the couchdb feature causes expected results as most users are not using it in their dev environment.