190 words

Glassfish 4 JTA Data Source Support

2017-06-19 07:33

I would like to have the persistence.xml of my server application (REST service) use a JTA data source, so that I can configure the data source from the app server (Glassfish 4 in my case).  My application already uses a number of JDBC data sources for Oracle etc., that are configured in that way, but I'm not sure how to achieve it with ObjectDB.  I'm guessing that I could create my own implementations, piggy backing on existing JDBC functionality, but want to check to make sure that I'm not missing a vital point or unnecessarily re-inventing something that exists already. Is there ObjectDB / app server support for JTA data sources?

Paul Hudson
paul's picture
Joined on 2015-03-18
User Post #2
2017-06-19 15:24

Currently ObjectDB database urls can be specified either as a virtual persistence unit name, or using the "javax.persistence.jdbc.url" property in a real persistence unit.

Note that JTA is supported by ObjectDB but JDBC is not supported as well as conventional data source setting.

If you create a basic data source implementation for ObjectDB and you are willing to share it then we may be able to integrate it into ObjectDB and maybe extend it in the future.

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

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.
Maximum file size: 32 MB