Community
Participate
Working Groups
Created attachment 209726 [details] patch for Gemini JPA In bug 366426 the EclipseLink team is working on implementing JPA support for NoSQL databases. With a few little modifications I was able to get it running with Gemini JPA. Gemini JPA basically needs a way to ignore data source handling in order to not try to acquire a data source. EclipseLink allows to explicitly turn off data source handling by setting it to an empty string. That logic also works with Gemini JPA. However, I wonder if there is a better way to detect situations when a data source is actually required.
One approach could be to create an OSGi spec for resource adapter services. This would provide proper dependency support. Did you work out the dependencies from EclipseLink to MongoDB or did you just connect to a MongoDB instance using the host/port, etc, running exernally?
For the beginning it's sufficient if the actual dependencies aren't managed within JPA. So basically one just passes host/port configuration information within the properties or a MongoDB connection object. EclipseLink supports both.
Added support for a new property. See http://wiki.eclipse.org/Gemini/JPA/Documentation/OtherTopics#Non-relational_Databases for information on how to enable this feature.