title: how to set dynamic header in spring remoting
body: <p>We need to call a Bean class using spring remoting and also set dynamic header in the call. We can set custom <code>HttpInvokerRequestExecutor</code> in the  <code>HttpInvokerProxyFactoryBean</code> and add header but how to set dynamic header generated on the fly for the request?</p>
  
  <pre><code>In the Config class, declaring the HttpInvokerProxyFactoryBean
  @Bean
  @Qualifier("service")
  public HttpInvokerProxyFactoryBean invoker() {
      HttpInvokerProxyFactoryBean invoker = new HttpInvokerProxyFactoryBean();
      invoker.setServiceUrl(url);
      invoker.setServiceInterface(Service.class);
      return invoker;
  }
  
  In the invoker class
  @Autowired
  Service service;
  
  public void invoke(Bean bean) {
      service.process(bean);
  }
  </code></pre>