The problem is that both sqlite and h2 are single user databases. I suspect whats happening is that the EMF is being created multiple times and trying to consume multiple connections. I'll try to see if I can come up with an example on how to configure this for h2, but I don't have sqlite local.
John On Wed, Apr 13, 2016 at 8:22 AM Anton <kurren...@gmail.com> wrote: > On Wed, Apr 13, 2016 at 12:44 PM, John D. Ament <johndam...@apache.org> > wrote: > > > Just wondering, does this happen the first time the route gets hit or > > subsequent times? > > > Yes, it appears to happen the first time. > > > > > Have you tried providing an explicit EntityManagerFactory bean to the > > endpoint? > > > I havent tried this. But it the error message seems clear, that it is due > to file being locked. >