ibatis-user-java mailing list archives

I think I got it,
I was parseing the config file every time I called my getSqlMapClient()
method. I'd been meaning to fix that but didn't think it was a big priority.
Put this one down to extremely bad coding on my part! :)
Sorry about that!
Peter
Clinton Begin wrote:
>Hi Peter,
>
>I've never experienced this, nor have I heard of anything similar.
>Which datasource implementation are you using: SimpleDataSource, or
>DBCP?
>
>In either case I'd expect it to work. Make sure though that you've
>properly ended your transaction within a finally block. For example:
>
>try {
> sqlMapClient.startTransaction();
> // ... do some work
> sqlMapClient.commitTransaction();
>} finally {
> sqlMapClient.endTransaction();
>}
>
>Cheers,
>Clinton
>
>