[ http://issues.apache.org/jira/browse/IBATIS-167?page=all ]

Sven Boden updated IBATIS-167:
------------------------------

    Attachment: SimpleDataSource.java

Changes for 1)

- When pinging of the pool is enable but no ping query is defined in the 
properties thrown an exception in initialize()
- In pingConnection(): When a connection check throws an exception include the 
message of the exception. When the ping query fails report the ping query and 
the corresponding SQL error message, this should give most people who have this 
problem an "aha" feeling. (currently the message is on debug level, possibly it 
could be reported as error).
- Change error message: "Error accessing SimplePooledConnection.  Connection 
has been invalidated (probably released back to the pool)." Leave of the 
released back to the pool part... in most cases this explanation will be wrong 
and will cause confusion (as in in IBATIS-158).

Regards,
Sven


> Improvements in SimpleDataSource
> --------------------------------
>
>          Key: IBATIS-167
>          URL: http://issues.apache.org/jira/browse/IBATIS-167
>      Project: iBatis for Java
>         Type: Improvement
>   Components: SQL Maps
>     Versions: 2.1.0, 2.0.9b, 2.0.9, 2.0.8
>  Environment: All
>     Reporter: Sven Boden
>     Priority: Trivial
>  Attachments: SimpleDataSource.java
>
> 1) With some small changes in SimpleDataSource problems as described in 
> IBATIS-158 would occurr much less.
> 2) Requested by Clinton: "The biggest improvement I'd like to make is removal 
> of the exclusive 
> Properties based configuration. I'd rather have a JavaBean style API for 
> configuration, which could potentually use a Properties file still, but with 
> properties that match exact JavaBeans properties for configuration."

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to