This sample demonstrates how to use cassandra database form a webapplication which is deployed on Liberty. This sample assumes that Apache Cassandra database is running on
localhost with default settings. Both cassandra database as well as liberty are running on Java 7 runtime.
This sample can be installed onto runtime versions 188.8.131.52 and later.
Online installation (requires 184.108.40.206 or later):
installUtility install cassandraDBSample
Any missing features required by the server will be installed for you.
cassandraDBSample.jarusing the download button at the top of the page and place it in the root of your server installation.
java -jar cassandraDBSample.jar
Any missing features required by the server will need to be installed separately.
To run the CassandraDB application:
localhostwith default settings and it should be running on Java 7 runtime.
bindirectory in the Liberty profile installation:
server run cassandraDBSample
CWWKZ0001I: Application cassandraDBApp started in XX.XX seconds.
cassandraDBApp.war file contains the source and binaries for the application, and can be used to import it to Eclipse.
The application is automatically installed because it is located in the server dropins directory. Any number of applications can be installed from this location.