• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

weblogic newbie questions

 
Srinivas Ramgopal
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • 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.
 
Rahul Toaikani
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For #1, can you post related code, will give better picture.
 
Joe Ess
Bartender
Posts: 9318
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic