Shouldn't be a problem, as long as you make sure the transaction has committed before trying to use the table in the second thread. Also, I wouldn't share a connection object between threads, as I don't think its threadsafe.
On Wed, Nov 10, 2010 at 1:14 PM, kasi <[email protected]> wrote: > I am creating a table using a DriverManager.getConnection in one > thread and then trying to use the > same table in another thread, I am getting table not found error > message, do I have to use the same connection > that I used for creating the table? > > Thanks > > -- > You received this message because you are subscribed to the Google Groups "H2 > Database" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/h2-database?hl=en. > > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
