• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JNDI + Spring issues

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends,

I want to update JNDI name values at the rum time. How should i proceed.

Here goes my case:
I am creating admin console for a web application. In the way to designing this console i found some beans defined like


As you all must have perceived i am asking container to fill these values via JNDI lookup.
To get this job done i am using PropertyPlaceholderConfigurer

Now my requirement is to update values for

bean_name

via admin console.

After overriding the PropertyPlaceholderConfigurer, i am able to update update these properties in the file. But these changes are not being reflected system wide.

What should i do? how can i process to solve this situation
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Note that the configuration is only read in the beginning when you "startup" Spring and create an ApplicationContext. At that point, after the "lifecycle" of creating an ApplicationContext, when the ApplicationContext is ready to be used, no configuration is needed anymore, nor is it consulted. At this point it is all about objects that are created. So if you want to change those values at runtime, you have to change then in the actual object instances.

Mark
 
vijay shanker
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank Mrark,

It is what i am thinking. and implemented. But i just wanted to know if there are any work around for this.

Thank.
 
reply
    Bookmark Topic Watch Topic
  • New Topic