Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369029 - Support JPA access to NoSQL databases
Summary: Support JPA access to NoSQL databases
Status: RESOLVED FIXED
Alias: None
Product: Gemini.JPA
Classification: RT
Component: Core (show other bugs)
Version: 1.0.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.1.0 M2   Edit
Assignee: Michael Keith CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-19 03:15 EST by Gunnar Wagenknecht CLA
Modified: 2012-07-20 11:10 EDT (History)
0 users

See Also:


Attachments
patch for Gemini JPA (16.13 KB, patch)
2012-01-19 03:15 EST, Gunnar Wagenknecht CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gunnar Wagenknecht CLA 2012-01-19 03:15:19 EST
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.
Comment 1 Michael Keith CLA 2012-05-23 13:30:19 EDT
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?
Comment 2 Gunnar Wagenknecht CLA 2012-05-23 13:44:37 EDT
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.
Comment 3 Michael Keith CLA 2012-05-28 12:19:19 EDT
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.