The issue is discussed couple of times, but I was not able to find a solution that solves our problem.
We have the following HttpInvoker service that takes the remote URL from Database:
The URL can be changed between remote calls.Code:@Service("exampleService") public class ExampleHttpInvoker extends HttpInvokerProxyFactoryBean { @Resource private DBService service; @PostConstruct public void init() throws ConfigurationException { String url = service.getURL(); this.setServiceUrl(url); this.setServiceInterface(RemoteInterface.class); this.setHttpInvokerRequestExecutor(new CommonsHttpInvokerRequestExecutor()); afterPropertiesSet(); } }
How to replace serviceUrl at runtime?
We can not use Session or Request scope since the service is not Web aware.
Any help will be appreciated.


Reply With Quote