Boost Fertility New Invention Ups Success Rates.pdf
Iib connect to couch db
1. Accessing CouchDB using IIB
Coalesce Technologies Inc.
With recent feature from IIB v10.0.0.6 – it is very easy to connect to the NoSQL databases for data
manipulation using LoopbackRequest node. But enterprises already using a previous version of
IIB/WMB still can work out a solution if they need to fetch data from NoSQL database.
Below is a short demo how we can use java for a connectivity to CouchDB for data manipulation.
Prerequisite: (add below jars to the class path of Java Project)
apache-commons-lang.jar
commons-httpclient-3.0.1.jar
couchdb4j-0.1.2.jar
ezmorph-1.0.jar
json-lib.jar
org.apache.commons.beanutils.jar
org.apache.commons.collections.jar
org-apache-commons-codec.jar
org-apache-commons-logging.jar
In IIB toolkit:
New -> Application -> CouchDBUsingJava
Create a very simple message flow like below.
2. Inside java compute put the below code (we are inserting a new record to the database).