If not yet done, don't forget to install your Appspy server.
At first you have to install the Appspy home directory :
[me@mycomputer]$ tree -L 2 appspy
appspy
`-- client
|-- common
|-- conf
|-- core
`-- servlet
[me@mycomputer]$ vi appspy/client/conf/appspy-config-default.properties
defaultCollectionService.serviceUrl=http://<appspy-server-host>:<appspy-server-port>/org.appspy.server.webapp/service/DataCollectionService
<dependency>
<groupId>org.appspy.perf</groupId>
<artifactId>org.appspy.perf.servlet</artifactId>
<version>1.1</version>
</dependency>
<context-param>
<description>Appspy application name</description>
<param-name>org.appspy.applicationName</param-name>
<param-value><Name of your application></param-value>
</context-param>
<context-param>
<description>Appspy application version</description>
<param-name>org.appspy.version</param-name>
<param-value><Version of your application></param-value>
</context-param>
<filter>
<filter-name>AppSpyFilter</filter-name>
<filter-class>org.appspy.perf.servlet.AppSpyFilter</filter-class>
</filter>
<!-- Map the Appspy filter with the URLs -->
<filter-mapping>
<filter-name>AppSpyFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
<servlet>
<servlet-name>AppspyStatusServlet</servlet-name>
<servlet-class>org.appspy.perf.servlet.AppspyStatusServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>AppspyControlServlet</servlet-name>
<servlet-class>org.appspy.perf.servlet.AppspyControlServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>AppspyStatusServlet</servlet-name>
<url-pattern>/appspy-status</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AppspyControlServlet</servlet-name>
<url-pattern>/appspy-control</url-pattern>
</servlet-mapping>