Results 1 to 2 of 2

Thread: Reconnect In Spring use BDCP&Mysql in iBatis

  1. #1
    Join Date
    Sep 2004
    Posts
    1

    Default Reconnect In Spring use BDCP&Mysql in iBatis

    HI, Guys:

    In Spring Data Access Layer, how to set the BDCP to reconnect when the connection instance is closed in pool?
    In Jakarta documents find the removeAbandoned parameter for DBCP i am wonder that could it be work fine for my problem?

    any reply is appreciated, thanks.

    photonmen

  2. #2
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    How is the connection instance closed? Do you mean the connection has gone stale in the database side (in which case you should refer to the documentation for your pool as to how it copes with that scenario) or that application code has closed the connection? Calling close() on a pooled connection should not really close the connection, just return it to a pool. So well-behaved JDBC code like Spring's JDBC behaviour will never close the underlying connection, which you can only do if you use something like a Spring NativeJdbcExtractor to get the underlying connection and close it (very naughty).
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

Similar Threads

  1. Spring + Ibatis tutorial?
    By stevecnz in forum Data
    Replies: 2
    Last Post: Dec 10th, 2007, 11:34 AM
  2. Replies: 1
    Last Post: Feb 16th, 2006, 11:10 AM
  3. Replies: 6
    Last Post: May 25th, 2005, 01:56 AM
  4. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  5. Replies: 2
    Last Post: Nov 9th, 2004, 12:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •