openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Bjørnbak <>
Subject Slow startup when using a postgresql db and connecting remotely
Date Tue, 06 May 2014 06:02:38 GMT

I'm trying to get opencms that uses openjpa to connection to a remote
postgresql db.

When I start opencms on my laptop at home connecting to a database in the
office it takes minutes to start..

I had the same experience with another app using hibernate but here I
solved it by using this "secret" setting:
hibernate.temp.use_jdbc_metadata_defaults. See

Does openjpa have a similar setting to avoid reading all metadata?

Opencms uses apache commons dbcp as a layer between openjpa and the
postgresql driver. I don't know if this influences solving the problem?

Med venlig hilsen / Kind regards,

Christian Bjørnbak

Chefudvikler / Lead Developer
TouristOnline A/S
Islands Brygge 43
2300 København S
TLF: +45 32888230
Dir. TLF: +45 32888235

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message