Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Recreate Connection in the pool.

 
Bennet Xavier
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

If we have Connection Pooling and DB server is restarted or all the connection in DB server is killed.

How to recreate the connection in application connection pooling.

for Example: I have started the application with Connection pooling, if the connection are killed in DB server, how can i refresh the Connection pooling.

Thanks In Advance,
Bennet Xavier X
 
Sandeep Sanaboyina
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends on your connection pooling implementation.

For Example, in OracleConnectionCacheManager you have the refreshCache method.

Better check the javadocs for your connection pool class.
 
Bennet Xavier
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much.
 
camilo lopes
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i fixed this problem with pool connection, in this post i presented the solution pool
its in portuguese, but you can use google translate .

note: once i will create a blog in english.
 
Caeser smith
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bennet Xavier wrote:Thank you very much.


is the refreshCache() solved your problem? if so how did you implemented it, i am facing the same problem. can you help please
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic