Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Apache Wink provides the "SimpleSymphonyApplicationSimpleWinkApplication" class in order to support the loading of resources and providers through a simple text file that contains a list of fully qualified class names of the resource and provider classes. Each line contains a single fully qualified class name that is either a resource or a provider. Empty lines and lines that begin with a number sign (#) are permitted and ignored.

...

The path to a simple application file is configured via the symphonywink.applicationConfigLocation init-param in the web.xml file. It is possible to specify multiple files by separating them with a semicolon.

Code Block
xml
xml
<servlet>
  <servlet-name>restSdkService</servlet-name>
  <servlet-class>
    com.hp.symphonywink.server.internal.servlet.RestServlet
  </servlet-class>
  <init-param>
    <param-name>symphonyname>wink.applicationConfigLocation</param-name>
    <param-value>/WEB-INF/providers;/WEB-INF/resources</param-value>
  </init-param>
</servlet

...

Code Block
xml
xml
# Providers
<servlet>
  <servlet-name>restSdkService</servlet-name>
  <servlet-class>
    com.hp.symphonywink.server.internal.servlet.RestServlet
  </servlet-class>
  <init-param>
    <param-name>symphonyname>wink.propertiesLocation</param-name>
    <param-value>/WEB-INF/configuration.properties</param-value>
  </init-param>
  <init-param>
    <param-name>symphonyApplicationConfigLocation<name>winkApplicationConfigLocation</param-name>
    <param-value>/WEB-INF/application</param-value>
  </init-param>
  <load-on-startup>0</load-on-startup>
</servlet>

...