How to shutdown Derby in-memory database Properly
问题 I'm using derby as an embedded database. Furthermore, I'm using it's in-memory database option for my unit tests. What I can't figure out is how to properly shut down (A quick look at the code) the Derby database. I beleive I have it working for a standard database but I'm getting different exceptions when attempt similar code on a in-memory database. I'm going to omit details, I'll add them if other feel are needed. Basically, I'm trying to shut down my database in these two fashions where