Can anyone guide to some resources about multiple thread synchronizing in OrmLite, I was not able to find one.
I am using JdbcPooledConnectionSource for connection which should be fine for multiple threads , but I do not know how ormlite behaves when using multiple threads to perform CRUD operation over database.
I need this because I am getting error ,when using mulitple threads.
Exception in thread "pool-1-thread-38" java.lang.IllegalStateException: Could not create data element in dao
...
Caused by: java.sql.SQLException: Unable to run insert stmt on object ...
...
Caused by: java.sql.SQLException: [SQLITE_BUSY] The database file is locked (database is locked)