Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Unable to reset Reconnect Count in JDBCConnection PoolRuntime MBean

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am using weblogic JDBCConnectionPoolRuntimeMBean (weblogic.management.runtime.JDBCConnectionPoolRuntimeMBean) to get detail status regarding JDBC connection while running an application on Weblogic.

Using:

Then I used

Using that above code, I get total number of try that connection pool tries to reconenct database but failed(at the time while database was not available or there is any network problem between application and database.)

Problem, I am facing:
Though the above code works fine, but after database is up and Network problem resolved, I still find the same count for connBean.getFailuresToReconnectCount(), it is not reset

I want, after database and network issues resolved, this count should be reset to Zero.

I tried to use reset() method, but it does not work.


Please advice.

Thanks in advance.

-Biswajit.
 
Biswajit Paria
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
More information:
I am using weblogic v7.0 and applications are deployed in admin server only.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!