Re: Shutdown Derby database using JPA not DriverManager

2017-01-02 Thread Christian Schneider
lt;derby-user@db.apache.org> Subject: Re: Shutdown Derby database using JPA not DriverManager You should avoid using Persistence.createEntityManagerFactory. It does not work well in OSGi. Instead use Aries JPA or Aries transaction control. Both can provide you with a fully configured Enti

RE: Shutdown Derby database using JPA not DriverManager

2017-01-02 Thread Timothy Vogel
cschneider...@gmail.com] On Behalf Of Christian Schneider Sent: Monday, January 2, 2017 07:32 To: Derby Discussion <derby-user@db.apache.org> Subject: Re: Shutdown Derby database using JPA not DriverManager You should avoid using Persistence.createEntityManagerFactory. It does not work well in OSGi. I

Re: Shutdown Derby database using JPA not DriverManager

2017-01-02 Thread Christian Schneider
You should avoid using Persistence.createEntityManagerFactory. It does not work well in OSGi. Instead use Aries JPA or Aries transaction control. Both can provide you with a fully configured EntityManagerFactory and EntityManager that copes well with the dynamics of OSGi. Christian On