diff --git a/hsarback/conf/WEB-INF/dev-web.xml b/hsarback/conf/WEB-INF/dev-web.xml
index 18aed7a..ba8b65a 100644
--- a/hsarback/conf/WEB-INF/dev-web.xml
+++ b/hsarback/conf/WEB-INF/dev-web.xml
@@ -21,6 +21,14 @@
enabledForExtensions
true
+
+ proxyValidateUrl
+ https://@LOGIN_HOST@:@LOGIN_PORT@/cas/proxyValidate
+
+
+ proxyServiceUrl
+ https://@CONFIG_HOST@:@CONFIG_PORT@/hsar/backend
+
diff --git a/hsarback/conf/WEB-INF/prod-web.xml b/hsarback/conf/WEB-INF/prod-web.xml
index fdcedc0..d3f7dda 100644
--- a/hsarback/conf/WEB-INF/prod-web.xml
+++ b/hsarback/conf/WEB-INF/prod-web.xml
@@ -18,9 +18,17 @@
XmlRpcServlet
de.hsadmin.remote.HSXmlRpcServlet
- enabledForExtensions
- true
+ enabledForExtensions
+ true
+
+ proxyValidateUrl
+ https://@LOGIN_HOST@:@LOGIN_PORT@/cas/proxyValidate
+
+
+ proxyServiceUrl
+ https://@CONFIG_HOST@:@CONFIG_PORT@/hsar/backend
+
diff --git a/hsarback/src/de/hsadmin/remote/HSXmlRpcServlet.java b/hsarback/src/de/hsadmin/remote/HSXmlRpcServlet.java
index 30adf65..bd2d961 100644
--- a/hsarback/src/de/hsadmin/remote/HSXmlRpcServlet.java
+++ b/hsarback/src/de/hsadmin/remote/HSXmlRpcServlet.java
@@ -1,15 +1,28 @@
package de.hsadmin.remote;
+import javax.servlet.ServletConfig;
+import javax.servlet.ServletException;
+
import org.apache.xmlrpc.XmlRpcException;
import org.apache.xmlrpc.metadata.XmlRpcSystemImpl;
import org.apache.xmlrpc.server.PropertyHandlerMapping;
import org.apache.xmlrpc.server.XmlRpcHandlerMapping;
import org.apache.xmlrpc.webserver.XmlRpcServlet;
+import de.hsadmin.core.model.TicketValidator;
+
public class HSXmlRpcServlet extends XmlRpcServlet {
private static final long serialVersionUID = 1L;
+ @Override
+ public void init() throws ServletException {
+ super.init();
+ final ServletConfig cfg = getServletConfig();
+ final String validateURL = cfg.getInitParameter("proxyValidateUrl");
+ final String serviceURL = cfg.getInitParameter("proxyServiceUrl");
+ TicketValidator.getInstance().initialize(validateURL, serviceURL); }
+
@Override
protected XmlRpcHandlerMapping newXmlRpcHandlerMapping()
throws XmlRpcException {