• 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

weblogic newbie questions

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

I am new to weblogic and recently installed weblogic 9.x.

I have couple of questions:
1) How does the memory caching work in weblogic? - any data stored in static hashmap (declared at the class level) is not being refershed inspite of a fresh deployment of the application.
The work around was that the weblogic server needs to be restarted to pick up the new values from the static data structure.
Is there any setting to refresh data and avoid the server restart?

2) Whenever a database is shutdown, the weblogic datasources become stale.
Is there a setting that automatically reactivates the datasources and the connection pool in weblogic without any manual intervention?


Thanks in advance for your time and interest.
 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For #1, can you post related code, will give better picture.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
#1 is definately strange behavior. I have a number of web applications that do the same thing and I've never seen class-static data survive a redeploy.
As for #2, there's various settings for the connection pool to allow the pool to test connections at creation, before being given to a requestor and when being returned to the pool. Have a look and see which would be useful in your application.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic