From 76fffacc7925121d1ce25ce371bd586f3934fd24 Mon Sep 17 00:00:00 2001 From: "AUSTIN A. HAMILTON" Date: Thu, 4 Sep 2014 13:37:25 -0400 Subject: [PATCH] Update README and change to cloudantNoSQLDB --- README.md | 5 ++--- app/src/com/sampleapp/db/DBUtil.java | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 066b8c9..12b6736 100755 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ Option A. Import the WAR File (Preferred) -OR- Option B. Import the Eclipse project by following these instructions: (Only if you want to modify the source code.) + 1. Open Eclipse 2. Select File->Import 3. Under the header labeled "Git", click "Projects from Git" and click `Next` @@ -109,9 +110,7 @@ Make sure you are in the Java EE [perspective](http://help.eclipse.org/juno/inde ![image](images/environment_variables.png) - You may do this step later, but your application will fail without it. - - 9. Click: Finish. Your app will deploy to Bluemix. If you haven't already created and bound your cloudant service, please refer to Step 5: Create a Cloudant Service + You may do this step later, but your application will fail without it. Click: `Finish`. Your app will deploy to Bluemix. If you haven't already created and bound your cloudant service, please refer to Step 5: Create a Cloudant Service **CONGRATS!** Your app is now published to Bluemix. (Note: It can take a few minutes to upload everything and deploy all of the services.) diff --git a/app/src/com/sampleapp/db/DBUtil.java b/app/src/com/sampleapp/db/DBUtil.java index c218144..6ea8e89 100644 --- a/app/src/com/sampleapp/db/DBUtil.java +++ b/app/src/com/sampleapp/db/DBUtil.java @@ -104,7 +104,7 @@ private DBUtil() { // find instance of cloudant bound to app while(iter.hasNext()){ String key = (String)iter.next(); - if(key.startsWith("cloudant")){ + if(key.startsWith("cloudantNoSQLDB")){ cloudant = vcap_services.getJSONArray(key); } }