Project

General

Profile

« Previous | Next » 

Revision 5e394236

Added by Cherian Mathew almost 8 years ago

MANIFEST.MF : New apache http client packages added
CdmServerInfo : changed name and added inner class for cdm instance
httpInvokerServiceClients : added new services
remotingApplicationContext : refactor for cache package

View differences:

.gitattributes
351 351
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/source/CdmRemoteSource.java -text
352 352
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/source/CdmRemoteSourceBase.java -text
353 353
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/source/CdmRemoteSourceException.java -text
354
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/source/CdmServerInstanceInfo.java -text
354
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/source/CdmServerInfo.java -text
355 355
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/source/ICdmRemoteSource.java -text
356 356
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/service/CdmServiceInterceptorException.java -text
357 357
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/service/CdmServiceRequestExecutor.java -text
eu.etaxonomy.taxeditor.cdmlib/META-INF/MANIFEST.MF
182 182
 eu.etaxonomy.cdm.validation.annotation,
183 183
 eu.etaxonomy.cdm.validation.constraint,
184 184
 eu.etaxonomy.remote.dto.rdf,
185
 eu.etaxonomy.taxeditor.remoting.cache,
185 186
 eu.etaxonomy.taxeditor.remoting.server,
186 187
 eu.etaxonomy.taxeditor.remoting.source,
187 188
 eu.etaxonomy.taxeditor.session,
......
199 200
 org.apache.fop.apps,
200 201
 org.apache.http,
201 202
 org.apache.http.client,
203
 org.apache.http.client.methods,
204
 org.apache.http.util,
202 205
 org.apache.log4j;uses:="org.apache.log4j.helpers,org.apache.log4j.or,org.apache.log4j.spi",
203 206
 org.apache.log4j.chainsaw;
204 207
  uses:="org.apache.log4j,
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/source/CdmServerInfo.java
1
// $Id$
2
/**
3
 * Copyright (C) 2015 EDIT
4
 * European Distributed Institute of Taxonomy
5
 * http://www.e-taxonomy.eu
6
 *
7
 * The contents of this file are subject to the Mozilla Public License Version 1.1
8
 * See LICENSE.TXT at the top of this package for the full license terms.
9
 */
10
package eu.etaxonomy.taxeditor.remoting.source;
11

  
12
import java.io.IOException;
13
import java.net.Socket;
14
import java.util.ArrayList;
15
import java.util.List;
16

  
17
import org.apache.http.HttpEntity;
18
import org.apache.http.HttpResponse;
19
import org.apache.http.client.ClientProtocolException;
20
import org.apache.http.client.HttpClient;
21
import org.apache.http.client.ResponseHandler;
22
import org.apache.http.client.methods.HttpGet;
23
import org.apache.http.impl.client.DefaultHttpClient;
24
import org.apache.http.util.EntityUtils;
25
import org.apache.log4j.Logger;
26
import org.json.JSONArray;
27
import org.json.JSONException;
28
import org.json.JSONObject;
29

  
30
import eu.etaxonomy.cdm.config.CdmSourceException;
31
import eu.etaxonomy.taxeditor.remoting.server.CDMServerException;
32

  
33
/**
34
 * @author cmathew
35
 * @date 20 Jan 2015
36
 *
37
 */
38
public class CdmServerInfo {
39
    public static final Logger logger = Logger.getLogger(CdmServerInfo.class);
40

  
41
    private final static String NAME_PRODUCTION = "edit-production";
42
    private final static String SERVER_PRODUCTION = "dev.e-taxonomy.eu";
43

  
44
    private final static String NAME_INTEGRATION = "edit-integration";
45
    private final static String SERVER_INTEGRATION = "int.e-taxonomy.eu";
46

  
47
    private final static String NAME_TEST = "edit-test";
48
    private final static String SERVER_TEST = "test.e-taxonomy.eu";
49

  
50
    private final static String SERVER_LOCALHOST = "localhost";
51
    private final static String NAME_LOCALHOST = "localhost";
52
    private final static String NAME_LOCALHOST_MGD = "localhost mgd.";
53

  
54
    private final String name;
55
    private final String server;
56
    private final int port;
57
    private final List<CdmInstanceInfo> instances;
58

  
59

  
60
    public CdmServerInfo(String name, String server, int port) {
61
        this.name = name;
62
        this.server = server;
63
        this.port = port;
64
        instances = new ArrayList<CdmInstanceInfo>();
65
    }
66

  
67

  
68
    public void refreshInstances() throws CDMServerException {
69
        String url = "http://" + server + ":" + String.valueOf(port) + "/cdmserver/instances.jsp";
70

  
71
        HttpClient client = new DefaultHttpClient();
72
        HttpGet httpGet = new HttpGet(url);
73

  
74
        logger.info("Executing request " + httpGet.getRequestLine());
75

  
76
        // Create a custom response handler
77
        ResponseHandler<String> responseHandler = new ResponseHandler<String>() {
78

  
79
            @Override
80
            public String handleResponse(
81
                    final HttpResponse response) throws ClientProtocolException, IOException {
82
                int status = response.getStatusLine().getStatusCode();
83
                if (status >= 200 && status < 300) {
84
                    HttpEntity entity = response.getEntity();
85
                    return entity != null ? EntityUtils.toString(entity) : null;
86
                } else {
87
                    throw new ClientProtocolException("Unexpected response status: " + status);
88
                }
89
            }
90

  
91
        };
92
        String responseBody = null;
93
        try {
94
            responseBody = client.execute(httpGet, responseHandler);
95
        } catch (ClientProtocolException e) {
96
            throw new CDMServerException(e);
97
        } catch (IOException e) {
98
            throw new CDMServerException(e);
99
        }
100

  
101

  
102
        if(responseBody != null) {
103
            try {
104
                JSONArray array = new JSONArray(responseBody);
105
                for(int i=0;i<array.length();i++) {
106
                    JSONObject instance = (JSONObject)array.get(i);
107
                    if(instance != null) {
108
                        JSONObject conf = (JSONObject)instance.get("configuration");
109
                        if(conf != null) {
110
                            String instanceName = conf.getString("instanceName");
111
                            // we need to remove the first (char) forward slash from
112
                            // the base path
113
                            String basePath = conf.getString("basePath").substring(1);
114
                            instances.add(new CdmInstanceInfo(instanceName, basePath));
115
                            logger.info("Added instance with name : " + instanceName + ", basePath : " + basePath);
116
                        }
117
                    }
118
                }
119
            } catch (JSONException e) {
120
                throw new CDMServerException(e);
121
            }
122
        }
123

  
124
    }
125

  
126
    public CdmInstanceInfo getInstanceFromName(String instanceName) {
127
        if(instanceName == null) {
128
            return null;
129
        }
130

  
131
        for(CdmInstanceInfo instance : instances) {
132
            if(instance.getName() != null && instance.getName().equals(instanceName)) {
133
                return instance;
134
            }
135
        }
136
        return null;
137
    }
138

  
139
    public CdmRemoteSource getCdmRemoteSource(CdmInstanceInfo instance) {
140
        if(instance != null) {
141
            return CdmRemoteSource.NewInstance(name,
142
                    server,
143
                    port,
144
                    instance.getBasePath(),
145
                    null);
146
        }
147
        return null;
148
    }
149

  
150
    public boolean pingServer(){
151
        try {
152
            Socket s = new Socket(server, port);
153
            logger.info("[CDM-Server] Available @ " + server + ":" + port );
154
            return true;
155
        } catch (IOException ioe) {
156

  
157
        }
158
        return false;
159
    }
160

  
161
    public boolean pingInstance(CdmInstanceInfo instance) throws CDMServerException  {
162

  
163
        CdmRemoteSource crs = getCdmRemoteSource(instance);
164
        try {
165
            if(crs != null && crs.checkConnection()) {
166
                logger.info("[CDM-Server] Running @ " + server + ":" + port + " for instance " + instance);
167
                return true;
168
            }
169
        } catch (CdmSourceException e) {
170
            throw new CDMServerException(e);
171
        }
172

  
173
        return false;
174
    }
175

  
176
    public static List<CdmServerInfo> getCdmServers() {
177
        List<CdmServerInfo> cdmServerInfoList = new ArrayList<CdmServerInfo>();
178
        cdmServerInfoList.add(new CdmServerInfo(NAME_PRODUCTION, SERVER_PRODUCTION, 80));
179
        cdmServerInfoList.add(new CdmServerInfo(NAME_INTEGRATION, SERVER_INTEGRATION, 80));
180
        cdmServerInfoList.add(new CdmServerInfo(NAME_TEST, SERVER_TEST, 80));
181
        cdmServerInfoList.add(new CdmServerInfo(NAME_LOCALHOST, SERVER_LOCALHOST, 8080));
182
        cdmServerInfoList.add(new CdmServerInfo(NAME_LOCALHOST_MGD, SERVER_LOCALHOST,8080));
183
        return cdmServerInfoList;
184
    }
185

  
186
    public String getName() {
187
        return name;
188
    }
189

  
190
    public String getServer() {
191
        return server;
192
    }
193

  
194

  
195
    public int getPort() {
196
        return port;
197
    }
198

  
199

  
200
    public List<CdmInstanceInfo> getInstances() throws CDMServerException {
201
        if(instances.isEmpty()) {
202
            refreshInstances();
203
        }
204
        return instances;
205
    }
206

  
207
    public class CdmInstanceInfo {
208
        private final String name;
209
        private final String basePath;
210

  
211

  
212
        public CdmInstanceInfo(String name, String basePath) {
213
            this.name = name;
214
            this.basePath = basePath;
215
        }
216

  
217

  
218
        public String getName() {
219
            return name;
220
        }
221

  
222
        public String getBasePath() {
223
            return basePath;
224
        }
225
    }
226
}
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/source/CdmServerInstanceInfo.java
1
// $Id$
2
/**
3
 * Copyright (C) 2015 EDIT
4
 * European Distributed Institute of Taxonomy
5
 * http://www.e-taxonomy.eu
6
 *
7
 * The contents of this file are subject to the Mozilla Public License Version 1.1
8
 * See LICENSE.TXT at the top of this package for the full license terms.
9
 */
10
package eu.etaxonomy.taxeditor.remoting.source;
11

  
12
import java.io.IOException;
13
import java.net.Socket;
14
import java.util.ArrayList;
15
import java.util.List;
16

  
17
import org.apache.log4j.Logger;
18

  
19
import eu.etaxonomy.cdm.config.CdmSourceException;
20
import eu.etaxonomy.taxeditor.remoting.server.CDMServerException;
21

  
22
/**
23
 * @author cmathew
24
 * @date 20 Jan 2015
25
 *
26
 */
27
public class CdmServerInstanceInfo {
28
    public static final Logger logger = Logger.getLogger(CdmServerInstanceInfo.class);
29

  
30
    private final static String SERVER_LOCALHOST = "localhost";
31
    private final static String NAME_LOCALHOST = "localhost";
32
    private final static String NAME_LOCALHOST_MGD = "localhost mgd.";
33

  
34
    private final static String CONTEXT_PATH_PREFIX = "cdmserver/";
35

  
36
    private final String name;
37
    private final String server;
38
    private final int port;
39
    private final List<String> instances;
40

  
41

  
42
    public CdmServerInstanceInfo(String name, String server, int port) {
43
        this.name = name;
44
        this.server = server;
45
        this.port = port;
46
        instances = new ArrayList<String>();
47
    }
48

  
49

  
50
    public void refreshInstances() {
51
        //FIXME:Remoting This list needs to be populated with a real fetch from the cdm server
52
        if(name.equals(NAME_LOCALHOST)) {
53
            instances.clear();
54
            instances.add("local-cyprus");
55
            instances.add("local-cichorieae");
56
        }
57
        if(name.equals(NAME_LOCALHOST_MGD)) {
58
            instances.clear();
59
            instances.add("local-test");
60
        }
61
    }
62

  
63
    public CdmRemoteSource getCdmRemoteSource(String instance) {
64
        return CdmRemoteSource.NewInstance(name,
65
                server,
66
                port,
67
                CONTEXT_PATH_PREFIX + instance,
68
                null);
69
    }
70

  
71
    public boolean pingServer(){
72
        try {
73
            Socket s = new Socket(server, port);
74
            logger.info("[CDM-Server] Available @ " + server + ":" + port );
75
            return true;
76
        } catch (IOException ioe) {
77

  
78
        }
79
        return false;
80
    }
81

  
82
    public boolean pingInstance(String instance) throws CDMServerException  {
83

  
84
        CdmRemoteSource crs = getCdmRemoteSource(instance);
85
        try {
86
            if(crs.checkConnection()) {
87
                logger.info("[CDM-Server] Running @ " + server + ":" + port + " for instance " + instance);
88
                return true;
89
            }
90
        } catch (CdmSourceException e) {
91
            throw new CDMServerException(e);
92
        }
93

  
94
        return false;
95
    }
96

  
97
    public static List<CdmServerInstanceInfo> getCdmServers() {
98
        List<CdmServerInstanceInfo> cdmServerInfoList = new ArrayList<CdmServerInstanceInfo>();
99
        cdmServerInfoList.add(new CdmServerInstanceInfo(NAME_LOCALHOST, SERVER_LOCALHOST, 8080));
100
        cdmServerInfoList.add(new CdmServerInstanceInfo(NAME_LOCALHOST_MGD, SERVER_LOCALHOST,8080));
101
        return cdmServerInfoList;
102
    }
103

  
104
    public String getName() {
105
        return name;
106
    }
107

  
108
    public String getServer() {
109
        return server;
110
    }
111

  
112

  
113
    public int getPort() {
114
        return port;
115
    }
116

  
117

  
118
    public List<String> getInstances() {
119
        if(instances.isEmpty()) {
120
            refreshInstances();
121
        }
122
        return instances;
123
    }
124
}
eu.etaxonomy.taxeditor.cdmlib/src/main/resources/eu/etaxonomy/cdm/httpInvokerServiceClients.xml
1 1
<?xml version="1.0" encoding="UTF-8"?>
2 2
<beans xmlns="http://www.springframework.org/schema/beans"
3
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
	xmlns:context="http://www.springframework.org/schema/context"
5
	xmlns:tx="http://www.springframework.org/schema/tx"
6
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
3
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
4
  xmlns:tx="http://www.springframework.org/schema/tx"
5
  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7 6
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
8 7
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
9 8

  
10
	
11
   <bean id="agentService"
12
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
13
		<property name="serviceUrl">
14
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/agent.service</value>
15
		</property>
16
		<property name="serviceInterface">
17
			<value>eu.etaxonomy.cdm.api.service.IAgentService</value>
18
		</property>
19
		<property name="httpInvokerRequestExecutor">
20
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
21
		</property>
22
	</bean>
23

  
24
   <bean id="annotationService"
25
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
26
		<property name="serviceUrl">
27
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/annotation.service</value>
28
		</property>
29
		<property name="serviceInterface">
30
			<value>eu.etaxonomy.cdm.api.service.IAnnotationService</value>
31
		</property>
32
		<property name="httpInvokerRequestExecutor">
33
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
34
		</property>
35
	</bean>
36

  
37
   <bean id="auditeventService"
38
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
39
		<property name="serviceUrl">
40
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/auditevent.service</value>
41
		</property>
42
		<property name="serviceInterface">
43
			<value>eu.etaxonomy.cdm.api.service.IAuditEventService</value>
44
		</property>
45
		<property name="httpInvokerRequestExecutor">
46
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
47
		</property>
48
	</bean>
49

  
50
   <bean id="classificationService"
51
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
52
		<property name="serviceUrl">
53
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/classification.service</value>
54
		</property>
55
		<property name="serviceInterface">
56
			<value>eu.etaxonomy.cdm.api.service.IClassificationService</value>
57
		</property>
58
		<property name="httpInvokerRequestExecutor">
59
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
60
		</property>
61
	</bean>
62

  
63
   <bean id="collectionService"
64
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
65
		<property name="serviceUrl">
66
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/collection.service</value>
67
		</property>
68
		<property name="serviceInterface">
69
			<value>eu.etaxonomy.cdm.api.service.ICollectionService</value>
70
		</property>
71
		<property name="httpInvokerRequestExecutor">
72
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
73
		</property>
74
	</bean>
75

  
76
   <bean id="commonService"
77
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
78
		<property name="serviceUrl">
79
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/common.service</value>
80
		</property>
81
		<property name="serviceInterface">
82
			<value>eu.etaxonomy.cdm.api.service.ICommonService</value>
83
		</property>
84
		<property name="httpInvokerRequestExecutor">
85
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
86
		</property>
87
	</bean>
88

  
89
   <bean id="descriptionService"
90
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
91
		<property name="serviceUrl">
92
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/description.service</value>
93
		</property>
94
		<property name="serviceInterface">
95
			<value>eu.etaxonomy.cdm.api.service.IDescriptionService</value>
96
		</property>
97
		<property name="httpInvokerRequestExecutor">
98
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
99
		</property>
100
	</bean>
101
	
102
   <bean id="editGeoService"
103
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
104
		<property name="serviceUrl">
105
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/editgeo.service</value>
106
		</property>
107
		<property name="serviceInterface">
108
			<value>eu.etaxonomy.cdm.ext.geo.IEditGeoService</value>
109
		</property>
110
		<property name="httpInvokerRequestExecutor">
111
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
112
		</property>
113
	</bean>
114

  
115
   <bean id="featureNodeService"
116
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
117
		<property name="serviceUrl">
118
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/featurenode.service</value>
119
		</property>
120
		<property name="serviceInterface">
121
			<value>eu.etaxonomy.cdm.api.service.IFeatureNodeService</value>
122
		</property>
123
		<property name="httpInvokerRequestExecutor">
124
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
125
		</property>
126
	</bean>
127

  
128
   <bean id="featureTreeService"
129
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
130
		<property name="serviceUrl">
131
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/featuretree.service</value>
132
		</property>
133
		<property name="serviceInterface">
134
			<value>eu.etaxonomy.cdm.api.service.IFeatureTreeService</value>
135
		</property>
136
		<property name="httpInvokerRequestExecutor">
137
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
138
		</property>
139
	</bean>
140

  
141
   <bean id="groupService"
142
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
143
		<property name="serviceUrl">
144
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/group.service</value>
145
		</property>
146
		<property name="serviceInterface">
147
			<value>eu.etaxonomy.cdm.api.service.IGroupService</value>
148
		</property>
149
		<property name="httpInvokerRequestExecutor">
150
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
151
		</property>
152
	</bean>
153

  
154
   <bean id="identificationKeyService"
155
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
156
		<property name="serviceUrl">
157
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/identificationkey.service</value>
158
		</property>
159
		<property name="serviceInterface">
160
			<value>eu.etaxonomy.cdm.api.service.IIdentificationKeyService</value>
161
		</property>
162
		<property name="httpInvokerRequestExecutor">
163
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
164
		</property>
165
	</bean>
166

  
167
   <bean id="locationService"
168
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
169
		<property name="serviceUrl">
170
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/location.service</value>
171
		</property>
172
		<property name="serviceInterface">
173
			<value>eu.etaxonomy.cdm.api.service.ILocationService</value>
174
		</property>
175
		<property name="httpInvokerRequestExecutor">
176
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
177
		</property>
178
	</bean>
179

  
180
   <bean id="markerService"
181
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
182
		<property name="serviceUrl">
183
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/marker.service</value>
184
		</property>
185
		<property name="serviceInterface">
186
			<value>eu.etaxonomy.cdm.api.service.IMarkerService</value>
187
		</property>
188
		<property name="httpInvokerRequestExecutor">
189
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
190
		</property>
191
	</bean>
192

  
193
   <bean id="mediaService"
194
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
195
		<property name="serviceUrl">
196
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/media.service</value>
197
		</property>
198
		<property name="serviceInterface">
199
			<value>eu.etaxonomy.cdm.api.service.IMediaService</value>
200
		</property>
201
		<property name="httpInvokerRequestExecutor">
202
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
203
		</property>
204
	</bean>
205

  
206
   <bean id="nameService"
207
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
208
		<property name="serviceUrl">
209
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/name.service</value>
210
		</property>
211
		<property name="serviceInterface">
212
			<value>eu.etaxonomy.cdm.api.service.INameService</value>
213
		</property>
214
		<property name="httpInvokerRequestExecutor">
215
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
216
		</property>
217
	</bean>
218

  
219
   <bean id="occurrenceService"
220
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
221
		<property name="serviceUrl">
222
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/occurrence.service</value>
223
		</property>
224
		<property name="serviceInterface">
225
			<value>eu.etaxonomy.cdm.api.service.IOccurrenceService</value>
226
		</property>
227
		<property name="httpInvokerRequestExecutor">
228
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
229
		</property>
230
	</bean>
231

  
232
   <bean id="polytomousKeyNodeService"
233
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
234
		<property name="serviceUrl">
235
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/polytomouskeynode.service</value>
236
		</property>
237
		<property name="serviceInterface">
238
			<value>eu.etaxonomy.cdm.api.service.IPolytomousKeyNodeService</value>
239
		</property>
240
		<property name="httpInvokerRequestExecutor">
241
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
242
		</property>
243
	</bean>
244

  
245
   <bean id="polytomousKeyService"
246
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
247
		<property name="serviceUrl">
248
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/polytomouskey.service</value>
249
		</property>
250
		<property name="serviceInterface">
251
			<value>eu.etaxonomy.cdm.api.service.IPolytomousKeyService</value>
252
		</property>
253
		<property name="httpInvokerRequestExecutor">
254
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
255
		</property>
256
	</bean>
257

  
258
   <bean id="referenceService"
259
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
260
		<property name="serviceUrl">
261
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/reference.service</value>
262
		</property>
263
		<property name="serviceInterface">
264
			<value>eu.etaxonomy.cdm.api.service.IReferenceService</value>
265
		</property>
266
		<property name="httpInvokerRequestExecutor">
267
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
268
		</property>
269
	</bean>
270
	
271
<!-- 
272
   <bean id="serviceService"
273
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
274
		<property name="serviceUrl">
275
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/service.service</value>
276
		</property>
277
		<property name="serviceInterface">
278
			<value>eu.etaxonomy.cdm.api.service.IService</value>
279
		</property>
280
	</bean>
281
 -->
282
 
283
   <bean id="taxonNodeService"
284
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
285
		<property name="serviceUrl">
286
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/taxonnode.service</value>
287
		</property>
288
		<property name="serviceInterface">
289
			<value>eu.etaxonomy.cdm.api.service.ITaxonNodeService</value>
290
		</property>
291
		<property name="httpInvokerRequestExecutor">
292
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
293
		</property>
294
	</bean>
295

  
296
   <bean id="taxonService"
297
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
298
		<property name="serviceUrl">
299
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/taxon.service</value>
300
		</property>
301
		<property name="serviceInterface">
302
			<value>eu.etaxonomy.cdm.api.service.ITaxonService</value>
303
		</property>
304
		<property name="httpInvokerRequestExecutor">
305
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
306
		</property>
307
	</bean>
308

  
309
   <bean id="termService"
310
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
311
		<property name="serviceUrl">
312
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/term.service</value>
313
		</property>
314
		<property name="serviceInterface">
315
			<value>eu.etaxonomy.cdm.api.service.ITermService</value>
316
		</property>
317
		<property name="httpInvokerRequestExecutor">
318
			<bean class="eu.etaxonomy.taxeditor.service.TermServiceRequestExecutor" />
319
		</property>
320
	</bean>
321

  
322
   <bean id="userService"
323
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
324
		<property name="serviceUrl">
325
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/user.service</value>
326
		</property>
327
		<property name="serviceInterface">
328
			<value>eu.etaxonomy.cdm.api.service.IUserService</value>
329
		</property>
330
		<property name="httpInvokerRequestExecutor">
331
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
332
		</property>
333
	</bean>
334

  
335
   <bean id="vocabularyService"
336
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
337
		<property name="serviceUrl">
338
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/vocabulary.service</value>
339
		</property>
340
		<property name="serviceInterface">
341
			<value>eu.etaxonomy.cdm.api.service.IVocabularyService</value>
342
		</property>
343
		<property name="httpInvokerRequestExecutor">
344
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
345
		</property>
346
	</bean>
347

  
348
   <bean id="workingSetService"
349
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
350
		<property name="serviceUrl">
351
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/workingset.service</value>
352
		</property>
353
		<property name="serviceInterface">
354
			<value>eu.etaxonomy.cdm.api.service.IWorkingSetService</value>
355
		</property>
356
		<property name="httpInvokerRequestExecutor">
357
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
358
		</property>
359
	</bean>
360
	
361
   <bean id="grantedAuthorityService"
362
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
363
		<property name="serviceUrl">
364
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/grantedauthority.service</value>
365
		</property>
366
		<property name="serviceInterface">
367
			<value>eu.etaxonomy.cdm.api.service.IGrantedAuthorityService</value>
368
		</property>
369
		<property name="httpInvokerRequestExecutor">
370
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
371
		</property>
372
	</bean>
373
	
374
   <bean id="databaseService"
375
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
376
		<property name="serviceUrl">
377
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/database.service</value>
378
		</property>
379
		<property name="serviceInterface">
380
			<value>eu.etaxonomy.cdm.api.service.IDatabaseService</value>
381
		</property>
382
		<property name="httpInvokerRequestExecutor">
383
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
384
		</property>
385
	</bean>
386
	
387
   <bean id="lsidAuthorityService"
388
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
389
		<property name="serviceUrl">
390
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/lsidauthoruty.service</value>
391
		</property>
392
		<property name="serviceInterface">
393
			<value>eu.etaxonomy.cdm.api.service.lsid.LSIDAuthorityService</value>
394
		</property>
395
		<property name="httpInvokerRequestExecutor">
396
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
397
		</property>
398
	</bean>
399
	
400
   <bean id="lsidMetadataService"
401
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
402
		<property name="serviceUrl">
403
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/lsidmetadata.service</value>
404
		</property>
405
		<property name="serviceInterface">
406
			<value>eu.etaxonomy.cdm.api.service.lsid.LSIDMetadataService</value>
407
		</property>
408
		<property name="httpInvokerRequestExecutor">
409
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
410
		</property>
411
	</bean>
412
	
413
   <bean id="lsiDataService"
414
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
415
		<property name="serviceUrl">
416
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/lsiddata.service</value>
417
		</property>
418
		<property name="serviceInterface">
419
			<value>eu.etaxonomy.cdm.api.service.lsid.LSIDDataService</value>
420
		</property>
421
		<property name="httpInvokerRequestExecutor">
422
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
423
		</property>
424
	</bean>
425

  
426
	<bean id="providerManager"
427
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
428
		<property name="serviceUrl">
429
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/authenticationManager.service</value>
430
		</property>
431
		<property name="serviceInterface">
432
			<value>org.springframework.security.authentication.AuthenticationManager</value>
433
		</property>
434
		<property name="httpInvokerRequestExecutor">
435
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
436
		</property>
437
	</bean>
438
	
439
	<bean id="primerService"
440
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
441
		<property name="serviceUrl">
442
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/primer.service</value>
443
		</property>
444
		<property name="serviceInterface">
445
			<value>eu.etaxonomy.cdm.api.service.molecular.IPrimerService</value>
446
		</property>
447
		<property name="httpInvokerRequestExecutor">
448
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
449
		</property>
450
	</bean>
451
	
452
	<bean id="amplificationService"
453
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
454
		<property name="serviceUrl">
455
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/amplification.service</value>
456
		</property>
457
		<property name="serviceInterface">
458
			<value>eu.etaxonomy.cdm.api.service.molecular.IAmplificationService</value>
459
		</property>
460
		<property name="httpInvokerRequestExecutor">
461
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
462
		</property>
463
	</bean>
464
	
465
	<bean id="sequenceService"
466
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
467
		<property name="serviceUrl">
468
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/sequence.service</value>
469
		</property>
470
		<property name="serviceInterface">
471
			<value>eu.etaxonomy.cdm.api.service.molecular.ISequenceService</value>
472
		</property>
473
		<property name="httpInvokerRequestExecutor">
474
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
475
		</property>
476
	</bean>
9

  
10
  <bean id="agentService"
11
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
12
    <property name="serviceUrl">
13
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/agent.service
14
      </value>
15
    </property>
16
    <property name="serviceInterface">
17
      <value>eu.etaxonomy.cdm.api.service.IAgentService</value>
18
    </property>
19
    <property name="httpInvokerRequestExecutor">
20
      <bean
21
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
22
    </property>
23
  </bean>
24

  
25
  <bean id="annotationService"
26
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
27
    <property name="serviceUrl">
28
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/annotation.service
29
      </value>
30
    </property>
31
    <property name="serviceInterface">
32
      <value>eu.etaxonomy.cdm.api.service.IAnnotationService</value>
33
    </property>
34
    <property name="httpInvokerRequestExecutor">
35
      <bean
36
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
37
    </property>
38
  </bean>
39

  
40
  <bean id="auditeventService"
41
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
42
    <property name="serviceUrl">
43
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/auditevent.service
44
      </value>
45
    </property>
46
    <property name="serviceInterface">
47
      <value>eu.etaxonomy.cdm.api.service.IAuditEventService</value>
48
    </property>
49
    <property name="httpInvokerRequestExecutor">
50
      <bean
51
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
52
    </property>
53
  </bean>
54

  
55
  <bean id="classificationService"
56
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
57
    <property name="serviceUrl">
58
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/classification.service
59
      </value>
60
    </property>
61
    <property name="serviceInterface">
62
      <value>eu.etaxonomy.cdm.api.service.IClassificationService</value>
63
    </property>
64
    <property name="httpInvokerRequestExecutor">
65
      <bean
66
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
67
    </property>
68
  </bean>
69

  
70
  <bean id="collectionService"
71
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
72
    <property name="serviceUrl">
73
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/collection.service
74
      </value>
75
    </property>
76
    <property name="serviceInterface">
77
      <value>eu.etaxonomy.cdm.api.service.ICollectionService</value>
78
    </property>
79
    <property name="httpInvokerRequestExecutor">
80
      <bean
81
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
82
    </property>
83
  </bean>
84

  
85
  <bean id="commonService"
86
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
87
    <property name="serviceUrl">
88
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/common.service
89
      </value>
90
    </property>
91
    <property name="serviceInterface">
92
      <value>eu.etaxonomy.cdm.api.service.ICommonService</value>
93
    </property>
94
    <property name="httpInvokerRequestExecutor">
95
      <bean
96
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
97
    </property>
98
  </bean>
99

  
100
  <bean id="descriptionService"
101
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
102
    <property name="serviceUrl">
103
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/description.service
104
      </value>
105
    </property>
106
    <property name="serviceInterface">
107
      <value>eu.etaxonomy.cdm.api.service.IDescriptionService</value>
108
    </property>
109
    <property name="httpInvokerRequestExecutor">
110
      <bean
111
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
112
    </property>
113
  </bean>
114

  
115
  <bean id="editGeoService"
116
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
117
    <property name="serviceUrl">
118
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/editgeo.service
119
      </value>
120
    </property>
121
    <property name="serviceInterface">
122
      <value>eu.etaxonomy.cdm.ext.geo.IEditGeoService</value>
123
    </property>
124
    <property name="httpInvokerRequestExecutor">
125
      <bean
126
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
127
    </property>
128
  </bean>
129

  
130
  <bean id="featureNodeService"
131
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
132
    <property name="serviceUrl">
133
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/featurenode.service
134
      </value>
135
    </property>
136
    <property name="serviceInterface">
137
      <value>eu.etaxonomy.cdm.api.service.IFeatureNodeService</value>
138
    </property>
139
    <property name="httpInvokerRequestExecutor">
140
      <bean
141
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
142
    </property>
143
  </bean>
144

  
145
  <bean id="featureTreeService"
146
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
147
    <property name="serviceUrl">
148
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/featuretree.service
149
      </value>
150
    </property>
151
    <property name="serviceInterface">
152
      <value>eu.etaxonomy.cdm.api.service.IFeatureTreeService</value>
153
    </property>
154
    <property name="httpInvokerRequestExecutor">
155
      <bean
156
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
157
    </property>
158
  </bean>
159

  
160
  <bean id="groupService"
161
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
162
    <property name="serviceUrl">
163
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/group.service
164
      </value>
165
    </property>
166
    <property name="serviceInterface">
167
      <value>eu.etaxonomy.cdm.api.service.IGroupService</value>
168
    </property>
169
    <property name="httpInvokerRequestExecutor">
170
      <bean
171
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
172
    </property>
173
  </bean>
174

  
175
  <bean id="identificationKeyService"
176
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
177
    <property name="serviceUrl">
178
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/identificationkey.service
179
      </value>
180
    </property>
181
    <property name="serviceInterface">
182
      <value>eu.etaxonomy.cdm.api.service.IIdentificationKeyService
183
      </value>
184
    </property>
185
    <property name="httpInvokerRequestExecutor">
186
      <bean
187
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
188
    </property>
189
  </bean>
190

  
191
  <bean id="locationService"
192
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
193
    <property name="serviceUrl">
194
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/location.service
195
      </value>
196
    </property>
197
    <property name="serviceInterface">
198
      <value>eu.etaxonomy.cdm.api.service.ILocationService</value>
199
    </property>
200
    <property name="httpInvokerRequestExecutor">
201
      <bean
202
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
203
    </property>
204
  </bean>
205

  
206
  <bean id="markerService"
207
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
208
    <property name="serviceUrl">
209
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/marker.service
210
      </value>
211
    </property>
212
    <property name="serviceInterface">
213
      <value>eu.etaxonomy.cdm.api.service.IMarkerService</value>
214
    </property>
215
    <property name="httpInvokerRequestExecutor">
216
      <bean
217
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
218
    </property>
219
  </bean>
220

  
221
  <bean id="mediaService"
222
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
223
    <property name="serviceUrl">
224
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/media.service
225
      </value>
226
    </property>
227
    <property name="serviceInterface">
228
      <value>eu.etaxonomy.cdm.api.service.IMediaService</value>
229
    </property>
230
    <property name="httpInvokerRequestExecutor">
231
      <bean
232
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
233
    </property>
234
  </bean>
235

  
236
  <bean id="nameService"
237
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
238
    <property name="serviceUrl">
239
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/name.service
240
      </value>
241
    </property>
242
    <property name="serviceInterface">
243
      <value>eu.etaxonomy.cdm.api.service.INameService</value>
244
    </property>
245
    <property name="httpInvokerRequestExecutor">
246
      <bean
247
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
248
    </property>
249
  </bean>
250

  
251
  <bean id="occurrenceService"
252
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
253
    <property name="serviceUrl">
254
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/occurrence.service
255
      </value>
256
    </property>
257
    <property name="serviceInterface">
258
      <value>eu.etaxonomy.cdm.api.service.IOccurrenceService</value>
259
    </property>
260
    <property name="httpInvokerRequestExecutor">
261
      <bean
262
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
263
    </property>
264
  </bean>
265

  
266
  <bean id="polytomousKeyNodeService"
267
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
268
    <property name="serviceUrl">
269
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/polytomouskeynode.service
270
      </value>
271
    </property>
272
    <property name="serviceInterface">
273
      <value>eu.etaxonomy.cdm.api.service.IPolytomousKeyNodeService
274
      </value>
275
    </property>
276
    <property name="httpInvokerRequestExecutor">
277
      <bean
278
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
279
    </property>
280
  </bean>
281

  
282
  <bean id="polytomousKeyService"
283
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
284
    <property name="serviceUrl">
285
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/polytomouskey.service
286
      </value>
287
    </property>
288
    <property name="serviceInterface">
289
      <value>eu.etaxonomy.cdm.api.service.IPolytomousKeyService</value>
290
    </property>
291
    <property name="httpInvokerRequestExecutor">
292
      <bean
293
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
294
    </property>
295
  </bean>
296

  
297
  <bean id="referenceService"
298
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
299
    <property name="serviceUrl">
300
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/reference.service
301
      </value>
302
    </property>
303
    <property name="serviceInterface">
304
      <value>eu.etaxonomy.cdm.api.service.IReferenceService</value>
305
    </property>
306
    <property name="httpInvokerRequestExecutor">
307
      <bean
308
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
309
    </property>
310
  </bean>
311

  
312
  <!-- <bean id="serviceService" class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean"> 
313
    <property name="serviceUrl"> <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/service.service</value> 
314
    </property> <property name="serviceInterface"> <value>eu.etaxonomy.cdm.api.service.IService</value> 
315
    </property> </bean> -->
316

  
317
  <bean id="taxonNodeService"
318
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
319
    <property name="serviceUrl">
320
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/taxonnode.service
321
      </value>
322
    </property>
323
    <property name="serviceInterface">
324
      <value>eu.etaxonomy.cdm.api.service.ITaxonNodeService</value>
325
    </property>
326
    <property name="httpInvokerRequestExecutor">
327
      <bean
328
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
329
    </property>
330
  </bean>
331

  
332
  <bean id="taxonService"
333
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
334
    <property name="serviceUrl">
335
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/taxon.service
336
      </value>
337
    </property>
338
    <property name="serviceInterface">
339
      <value>eu.etaxonomy.cdm.api.service.ITaxonService</value>
340
    </property>
341
    <property name="httpInvokerRequestExecutor">
342
      <bean
343
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
344
    </property>
345
  </bean>
346

  
347
  <bean id="termService"
348
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
349
    <property name="serviceUrl">
350
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/term.service
351
      </value>
352
    </property>
353
    <property name="serviceInterface">
354
      <value>eu.etaxonomy.cdm.api.service.ITermService</value>
355
    </property>
356
    <property name="httpInvokerRequestExecutor">
357
      <bean class="eu.etaxonomy.taxeditor.service.TermServiceRequestExecutor" />
358
    </property>
359
  </bean>
360

  
361
  <bean id="userService"
362
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
363
    <property name="serviceUrl">
364
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/user.service
365
      </value>
366
    </property>
367
    <property name="serviceInterface">
368
      <value>eu.etaxonomy.cdm.api.service.IUserService</value>
369
    </property>
370
    <property name="httpInvokerRequestExecutor">
371
      <bean
372
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
373
    </property>
374
  </bean>
375

  
376
  <bean id="vocabularyService"
377
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
378
    <property name="serviceUrl">
379
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/vocabulary.service
380
      </value>
381
    </property>
382
    <property name="serviceInterface">
383
      <value>eu.etaxonomy.cdm.api.service.IVocabularyService</value>
384
    </property>
385
    <property name="httpInvokerRequestExecutor">
386
      <bean
387
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
388
    </property>
389
  </bean>
390

  
391
  <bean id="workingSetService"
392
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
393
    <property name="serviceUrl">
394
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/workingset.service
395
      </value>
396
    </property>
397
    <property name="serviceInterface">
398
      <value>eu.etaxonomy.cdm.api.service.IWorkingSetService</value>
399
    </property>
400
    <property name="httpInvokerRequestExecutor">
401
      <bean
402
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
403
    </property>
404
  </bean>
405

  
406
  <bean id="grantedAuthorityService"
407
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
408
    <property name="serviceUrl">
409
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/grantedauthority.service
410
      </value>
411
    </property>
412
    <property name="serviceInterface">
413
      <value>eu.etaxonomy.cdm.api.service.IGrantedAuthorityService
414
      </value>
415
    </property>
416
    <property name="httpInvokerRequestExecutor">
417
      <bean
418
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
419
    </property>
420
  </bean>
421

  
422
  <bean id="databaseService"
423
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
424
    <property name="serviceUrl">
425
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/database.service
426
      </value>
427
    </property>
428
    <property name="serviceInterface">
429
      <value>eu.etaxonomy.cdm.api.service.IDatabaseService</value>
430
    </property>
431
    <property name="httpInvokerRequestExecutor">
432
      <bean
433
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
434
    </property>
435
  </bean>
436

  
437
  <bean id="lsidAuthorityService"
438
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
439
    <property name="serviceUrl">
440
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/lsidauthoruty.service
441
      </value>
442
    </property>
443
    <property name="serviceInterface">
444
      <value>eu.etaxonomy.cdm.api.service.lsid.LSIDAuthorityService
445
      </value>
446
    </property>
447
    <property name="httpInvokerRequestExecutor">
448
      <bean
449
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
450
    </property>
451
  </bean>
452

  
453
  <bean id="lsidMetadataService"
454
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
455
    <property name="serviceUrl">
456
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/lsidmetadata.service
457
      </value>
458
    </property>
459
    <property name="serviceInterface">
460
      <value>eu.etaxonomy.cdm.api.service.lsid.LSIDMetadataService
461
      </value>
462
    </property>
463
    <property name="httpInvokerRequestExecutor">
464
      <bean
465
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
466
    </property>
467
  </bean>
468

  
469
  <bean id="lsiDataService"
470
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
471
    <property name="serviceUrl">
472
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/lsiddata.service
473
      </value>
474
    </property>
475
    <property name="serviceInterface">
476
      <value>eu.etaxonomy.cdm.api.service.lsid.LSIDDataService</value>
477
    </property>
478
    <property name="httpInvokerRequestExecutor">
479
      <bean
480
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
481
    </property>
482
  </bean>
483

  
484
  <bean id="providerManager"
485
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
486
    <property name="serviceUrl">
487
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/authenticationManager.service
488
      </value>
489
    </property>
490
    <property name="serviceInterface">
491
      <value>org.springframework.security.authentication.AuthenticationManager
492
      </value>
493
    </property>
494
    <property name="httpInvokerRequestExecutor">
495
      <bean
496
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
497
    </property>
498
  </bean>
499

  
500
  <bean id="primerService"
501
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
502
    <property name="serviceUrl">
503
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/primer.service
504
      </value>
505
    </property>
506
    <property name="serviceInterface">
507
      <value>eu.etaxonomy.cdm.api.service.molecular.IPrimerService
508
      </value>
509
    </property>
510
    <property name="httpInvokerRequestExecutor">
511
      <bean
512
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
513
    </property>
514
  </bean>
515

  
516
  <bean id="amplificationService"
517
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
518
    <property name="serviceUrl">
519
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/amplification.service
520
      </value>
521
    </property>
522
    <property name="serviceInterface">
523
      <value>eu.etaxonomy.cdm.api.service.molecular.IAmplificationService
524
      </value>
525
    </property>
526
    <property name="httpInvokerRequestExecutor">
527
      <bean
528
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
529
    </property>
530
  </bean>
531

  
532
  <bean id="sequenceService"
533
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
534
    <property name="serviceUrl">
535
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/sequence.service
536
      </value>
537
    </property>
538
    <property name="serviceInterface">
539
      <value>eu.etaxonomy.cdm.api.service.molecular.ISequenceService
540
      </value>
541
    </property>
542
    <property name="httpInvokerRequestExecutor">
543
      <bean
544
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
545
    </property>
546
  </bean>
547

  
548
  <bean id="entityValidationResultService"
549
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
550
    <property name="serviceUrl">
551
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/entityvalidationresult.service
552
      </value>
553
    </property>
554
    <property name="serviceInterface">
555
      <value>eu.etaxonomy.cdm.api.service.IEntityValidationResultService
556
      </value>
557
    </property>
558
    <property name="httpInvokerRequestExecutor">
559
      <bean
560
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
561
    </property>
562
  </bean>
563

  
564
  <bean id="entityConstraintViolationService"
565
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
566
    <property name="serviceUrl">
567
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/entityconstraintviolation.service
568
      </value>
569
    </property>
570
    <property name="serviceInterface">
571
      <value>eu.etaxonomy.cdm.api.service.IEntityConstraintViolationService
572
      </value>
573
    </property>
574
    <property name="httpInvokerRequestExecutor">
575
      <bean
576
        class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
577
    </property>
578
  </bean>
477 579

  
478 580

  
479 581

  
eu.etaxonomy.taxeditor.cdmlib/src/main/resources/eu/etaxonomy/cdm/remotingApplicationContext.xml
27 27
			expression="eu\.etaxonomy\.cdm\.api\.cache\.CdmDaoCacher" />
28 28
	</context:component-scan>
29 29

  
30
	
30
	<context:component-scan base-package="eu.etaxonomy.taxeditor.remoting.cache"/>
31 31

  
32 32
	
33 33
	<!-- EditGeoService was moved to ext. Therefore it will not be found by 
eu.etaxonomy.taxeditor.cdmlib/src/main/resources/log4j.properties
25 25
###
26 26
log4j.logger.eu.etaxonomy.cdm = INFO
27 27
log4j.logger.eu.etaxonomy.taxeditor.remoting.source = INFO
28
log4j.logger.eu.etaxonomy.taxeditor.remoting.cache = INFO

Also available in: Unified diff