Results 1 to 2 of 2

Thread: SLSB support: dynamic JNDI settings

  1. #1
    Join Date
    Oct 2004
    Location
    Toulouse, France
    Posts
    19

    Default SLSB support: dynamic JNDI settings

    Hi,

    I work on a distributed application in which each client (Swing-based GUI) can access several remote appservers implementing SLSBs. I'd like to leverage Spring SLSB support by using SimpleRemoteStatelessSessionProxyFactoryBean.

    My problem is that clients receive the system topology (including the JNDI settings of the servers) at runtime. Is there a way to dynamically set these properties, in order for the Spring proxies to call the right appserver ?

    Thanks for answering. Regards,
    Baptiste

  2. #2
    Join Date
    Aug 2004
    Location
    Vancouver, Canada
    Posts
    25

    Default

    Delay your initialization of Spring (ApplicationContext or BeanFactory) to after the client receives the topology, then you can easily implement a BeanFactoryPostProcessor that replaces tokens (something like ${jndi_url} ) in the definition file at runtime.

    See PropertyPlaceholderConfigurer.java for a sample.

Similar Threads

  1. Stack Overflow
    By rayho222 in forum Container
    Replies: 6
    Last Post: May 17th, 2005, 03:42 AM
  2. how to support dynamic role configuration ?
    By lixin_chu in forum Security
    Replies: 2
    Last Post: Apr 28th, 2005, 10:22 PM
  3. Replies: 3
    Last Post: Dec 17th, 2004, 09:27 AM
  4. Eclipse 3.0 compiler settings for Spring build?
    By jbetancourt in forum Architecture
    Replies: 4
    Last Post: Oct 5th, 2004, 03:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •