131 words

Issue #167 - Retrieving Metamodel without Connection

Feature RequestVersion: 2.4.2Priority: NormalStatus: FixedReplies: 1
#1
2012-08-20 20:38

Hello!

I use Spring Data JPA. It uses the Metamodel to create repository beans. This triggers a connection to the ObjectDB server. It happens on every start of the Context. If it fails the application isn't available at all. I had the situations multiple times that my database server took longer to boot after a power outage than the tomcat machine. This leads to an unusable application until i restart tomcat.

Other JPA providers are able to fetch the Metamodel without connecting to the DB.
I would appreciate it very much if you could change this behaviour in some future version of ObjectDB.

Regards Ralph

mosi0815
mosi0815's picture
Joined on 2011-10-08
User Post #22
#2
2012-09-27 03:55

Build 2.4.3_05 changes the way that EntityManagerFactory's getMetmodel works.

If invoked before first connection to the server - the persistence unit model is analyzed locally on the client side.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #1,275

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel