From: Niels Erik G. Nielsen Date: Mon, 10 Jun 2013 23:09:09 +0000 (-0400) Subject: Fixing web.xml based config example X-Git-Tag: v0.0.7~42^2~3 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=0dfeb7cc94c619e427094c69d0cdeb14028212cb;p=mkjsf-moved-to-github.git Fixing web.xml based config example --- diff --git a/src/main/java/com/indexdata/mkjsf/config/package-info.java b/src/main/java/com/indexdata/mkjsf/config/package-info.java index 6716e66..aec5200 100644 --- a/src/main/java/com/indexdata/mkjsf/config/package-info.java +++ b/src/main/java/com/indexdata/mkjsf/config/package-info.java @@ -31,17 +31,23 @@ * * *

For the web.xml configuration scheme (choosing WebXmlConfigReader in beans.xml) - * to pre-define the URL of the Pazpar2 to use, the configuration could be:

+ * to pre-define the URL of the Pazpar2 to use and choose Pazpar2 as the selected + * service type, the configuration could be:

* *
  *  <context-param>
  *   <param-name>PAZPAR2_URL</param-name>
  *   <param-value>http://localhost:8004/</param-value>
  *  </context-param>
+ *  <context-param>
+ *   <description>Service type. Possible values: SP, PZ2, TBD</description>
+ *   <param-name>TYPE</param-name>
+ *   <param-value>PZ2</param-value>  
+ *  </context-param>
  * 
* *

For the Mk2ConfigReader scheme to work, the web.xml must then contain pointers to the configuration directory - * and properties file. + * and properties file. The specific configuration itself would be in those files then. * In this example the configuration directory is in the web application itself (war://testconfig). A more regular * example would put it in a separate directory to not have it overwritten by each deployment of the war.

*