jQuery in Action, 3rd edition
The moose likes BEA/Weblogic and the fly likes weblogic newbie questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "weblogic newbie questions" Watch "weblogic newbie questions" New topic

weblogic newbie questions

Srinivas Ramgopal
Ranch Hand

Joined: Aug 06, 2006
Posts: 63
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

Joined: Feb 14, 2007
Posts: 36
For #1, can you post related code, will give better picture.
Joe Ess

Joined: Oct 29, 2001
Posts: 9189

#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.

[How To Ask Questions On JavaRanch]
I agree. Here's the link: http://aspose.com/file-tools
subject: weblogic newbie questions
jQuery in Action, 3rd edition