• 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

is JMX the way to go for this

 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If my database goes down and then comes up after sometime, is my database connection pool and datasource still valid?. If not, is it possible at all to initiate a reinitialization of the pool and the datasource programmatically? do i need to read up weblogic JMX?
Before that it w'd be great if somebody c'd tell me if programmatic reinitialization is possible in the first place and then if JMX is the way to go.
thanks!
 
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by karthik Guru:
If my database goes down and then comes up after sometime, is my database connection pool and datasource still valid?. If not, is it possible at all to initiate a reinitialization of the pool and the datasource programmatically? do i need to read up weblogic JMX?


I cannot say positively, but it makes sense that the connection pool would recover just fine. For example, WebLogic already recycles (as in throw away and create anew) connections after a specified period of time. As well you can tell WL to test connections each time they are handed out from the pool. If you're using Oracle, give it the "dual" table and WL will select count(*) from it each time.
However, it's totally my assumption that WL is smart enough to create connections to replace broken ones (otherwise why test them?). Give it a try.
 
I am not young enough to know everything. - Oscar Wilde This tiny ad thinks it knows more than Oscar:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic