apache > db
Apache DB Project
 
Font size:      

Working with Database Threads in an Embedded Environment

Working with Database Threads in an Embedded Environment

Do not use interrupt calls to notify threads that are accessing a database, because Derby will catch the interrupt call and close the connection to the database. Use wait and notify calls instead.

This will not happen in a client/server environment, but if you want your application to work in either environment it is good practice to follow this rule.

There are special considerations when working with more than one database thread in an application. See Working with Multiple Connections to a Single Database and Working with Multiple Threads Sharing a Single Connection.


Previous Page
Next Page
Table of Contents
Index