SqlMapClient supports multiple threads, you should not have more than one
copy.   In fact, if you do, you might run into these kinds of problems.
I think that's in the documentation in the first sections regarding
SqlMapClient.

Clinton

On Tue, Sep 22, 2009 at 4:22 PM, Ejaz X Mohammed <ejaz.moham...@jpmorgan.com
> wrote:

> Hello,
>
> I'm having problem using SqlMapClient in multiple threads ...
>
> I'm storing SqlMapClient instance as ThreadLocal variable - thus each
> thread gets it's own separate copy.
>
> I've supplied startTransaction(), commitTransaction() and endTransaction()
> which operate on thread local SqlMapClient instance
>
> When running the application under multiple threads, it seems to get stuck
> on update on same table...
>
> Did anyone notice this earlier?
>
> Any solutions ...?
>
> Regards
> Ejaz
> This email is confidential and subject to important disclaimers and
> conditions including on offers for the purchase or sale of
> securities, accuracy and completeness of information, viruses,
> confidentiality, legal privilege, and legal entity disclaimers,
> available at http://www.jpmorgan.com/pages/disclosures/email.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
> For additional commands, e-mail: user-java-h...@ibatis.apache.org
>
>

Reply via email to