Skip to content
Snippets Groups Projects
Commit dd2da8ff authored by felmer's avatar felmer
Browse files

SP-481, BIS-317: Remove OptimisticLockingRetryAdvisor in published servers in...

SP-481, BIS-317: Remove OptimisticLockingRetryAdvisor in published servers in order to have two OptimisticLockingRetryAdvisor in the caller chain.

SVN: 28594
parent 750ec81d
No related branches found
No related tags found
No related merge requests found
...@@ -41,8 +41,6 @@ public class CommonServiceServer extends HttpInvokerServiceExporter ...@@ -41,8 +41,6 @@ public class CommonServiceServer extends HttpInvokerServiceExporter
{ {
setServiceInterface(ICommonServer.class); setServiceInterface(ICommonServer.class);
setService(common); setService(common);
setInterceptors(new Object[]
{ new OptimisticLockingRetryAdvisor() });
super.afterPropertiesSet(); super.afterPropertiesSet();
} }
......
...@@ -47,7 +47,7 @@ public class ETLServiceServer extends HttpInvokerServiceExporter ...@@ -47,7 +47,7 @@ public class ETLServiceServer extends HttpInvokerServiceExporter
setServiceInterface(IServiceForDataStoreServer.class); setServiceInterface(IServiceForDataStoreServer.class);
setService(etlService); setService(etlService);
setInterceptors(new Object[] setInterceptors(new Object[]
{ createExceptionTranslator(), new OptimisticLockingRetryAdvisor() }); { createExceptionTranslator() });
super.afterPropertiesSet(); super.afterPropertiesSet();
} }
......
...@@ -74,7 +74,6 @@ public class ServiceConversationServerManager extends BaseServiceConversationSer ...@@ -74,7 +74,6 @@ public class ServiceConversationServerManager extends BaseServiceConversationSer
public void setEtlService(IServiceForDataStoreServer etlService) public void setEtlService(IServiceForDataStoreServer etlService)
{ {
ProxyFactory factory = new ProxyFactory(etlService); ProxyFactory factory = new ProxyFactory(etlService);
factory.addAdvisor(new OptimisticLockingRetryAdvisor());
this.etlService = (IServiceForDataStoreServer) factory.getProxy(); this.etlService = (IServiceForDataStoreServer) factory.getProxy();
} }
......
...@@ -22,7 +22,6 @@ import org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter; ...@@ -22,7 +22,6 @@ import org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import ch.systemsx.cisd.openbis.generic.server.OptimisticLockingRetryAdvisor;
import ch.systemsx.cisd.openbis.plugin.generic.shared.IGenericServer; import ch.systemsx.cisd.openbis.plugin.generic.shared.IGenericServer;
import ch.systemsx.cisd.openbis.plugin.generic.shared.ResourceNames; import ch.systemsx.cisd.openbis.plugin.generic.shared.ResourceNames;
...@@ -42,8 +41,6 @@ public class GenericServiceServer extends HttpInvokerServiceExporter ...@@ -42,8 +41,6 @@ public class GenericServiceServer extends HttpInvokerServiceExporter
{ {
setServiceInterface(IGenericServer.class); setServiceInterface(IGenericServer.class);
setService(server); setService(server);
setInterceptors(new Object[]
{ new OptimisticLockingRetryAdvisor() });
super.afterPropertiesSet(); super.afterPropertiesSet();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment