Create your filter Jar and update the Carbon Tomcat web.xml to pick then new filter.
<!-- Filter implementation --> <filter> <filter-name>SetCustomCookie</filter-name> <filter-class>com.piedpiper.CustomCookie</filter-class> <init-param> <param-name>mode</param-name> <param-value>DENY</param-value> </init-param> </filter>
<!-- Filter maping --> <filter-mapping> <filter-name>SetCustomCookie</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
WSO2 CSS is Column ( Family Data ) Store based on Apache Cassandra . WSO2 CSS can deploy with any WSO2 Carbon based product and it is available as a service in StratosLive the PaaS offering of WSO2.
It is very easy to use CSS as a data store with widely available connectors like java based Hector and other thrift based connectors. StratosLive supports Hector API to communicate with the Cassanda based back-end CSS cluster. External applications can use StratosLive PaaS column data store feature with any Cassandra connector.
StratosLive app developers have to use tenant information to authenticate in the connection with CSS data store. Tenant admin can create tenant and authorize the user for data store access.
This sample create connection to StratosLive CSS as an external application. It writes random data to StratosLive CSS keyspace and read and output date via stdout.
Instructions to build and run the sample.
Build the project with Maven
Take a copy of the source using svn
mvn clean install
Build the project with dependency libraries
mvn clean assembly:assembly -o
Execute the program
java -jar target/org.wso2.carbon.cassandra.examples-3.2.1-jar-with-dependencies.jar