Hi,

Yes, using the same connection from multiple threads should work, but I
wouldn't recommend it, because it blocks you from using transactions. Also,
be aware that you can't share objects that have state (PreparedStatement
for example). But that's not really related to H2.

Regards,
Thomas


On Wednesday, May 7, 2014, Noel Grandin <[email protected]> wrote:

> Yes, but realise that the operations are serialised inside the DB when
> doing that.
> So you will lose a little performance,but probably not very much if
> you only have a few threads.
>
> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:;>.
> To post to this group, send email to 
> [email protected]<javascript:;>
> .
> Visit this group at http://groups.google.com/group/h2-database.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to