The JSP reference implementation includes a set of Analytics controls that are not displayed by default. These controls are useful for learning about, developing, and debugging Analytics statements.
These instructions pertain to the JSP reference implementation that runs under the Tools Service. If your JSP reference is running on a standalone Tomcat, use the same instructions, substituting the path names in your Tomcat installation for the ones below
To enable the Analytics controls in the JSP reference implementation:
After installing the Workbench package, place
CordaEmbedder.jar
in this directory:This file is available as part of the Corda Server installation package and is required by the reference implementation even if you do not intend to use charts.
Edit the
web.xml
file (which is in the WEB-INF directory from step 1) and add the definition of theeneAnalyticsEnabled
parameter, as in this example:<?xml version="1.0" encoding="ISO-8859-1"?> <!-- This file identifies these directories as containing a Web application. --> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <context-param> <param-name>eneAnalyticsEnabled</param-name> <param-value>1</param-value> <description>Flag to enable Oracle Commerce Analytics controls</description> </context-param> </web-app>
In a Web browser, navigate to the JSP reference implementation. The Analytics controls will be visible.