Announcement Announcement Module
No announcement yet.
Programatically modify ProxyFactoryBean properties? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Programatically modify ProxyFactoryBean properties?

    I was wondering if is it possible to modify a HttpInvokerProxyFactoryBean property after the client context xml has been loaded? Or would I have to reload the xml? I would like to be able to modify the 'serviceUrl' property because the server location and port need to be configurable and controlled by the client application.

  • #2
    No, the proxy is created once, on first usage of the factory bean.

    If this is a strong requirement, it shouldn't be that big a deal for you to create your own proxies programmatically though. Just create a HttpInvokerProxyFactoryBean manually, with the proper values, and call getObject on it.