| Gemini JPA + Gemini Naming [message #730158] |
Tue, 27 September 2011 14:07  |
Carlos Salinas Messages: 32 Registered: March 2011 Location: Avd. de la Argentina 132,... |
Member |
|
|
Hi,
I already have Gemini JPA and Gemini Naming working in a virgo instance, but i cannot integrate them, because if i test putting the DB Credentials inside the persistence.xml from a persistant bundle i can query without any problem. And also if i try to get a DataSource object registered as a service throught the JNDIContextManager service i also can get the datasource.
But when i want to edit the persistent.xml and i add the following tag in the persisten-unit:
<non-jta-data-source>osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/countdb)</non-jta-data-source>
The bundle from Gemini JPA cannot register any service with the EntityManagerFactory interface for that persistent-unit.
I use the lastest versions for the two Gemini projects. I think the problem is i dont edit the persistant descriptor properly.
I attach the persistent.xml file.
thanks.
|
|
|
|
|
| Re: Gemini JPA + Gemini Naming [message #730888 is a reply to message #730843] |
Thu, 29 September 2011 09:10   |
Mike Keith Messages: 186 Registered: July 2009 |
Senior Member |
|
|
Quote:Ill post a enhancement request, as u said. The testing task u propose i have just done it and it works, but this workaround it is not smart. But any way i attach the code if u or anyone want to have a look.
Glad the workaround got you past this. I agree it is not an ideal way to solve the problem, I just wanted you to not be blocked by it. You have been the first person to ask for JNDI integration so it was not done, but I should be able to add in your enhancement request for the 1.1 release.
Quote:By the way. There is no documentation about the diferent Gemini Projects, so it is hard by newbies to integrate them in the projects.
Funny you should mention that, since I actually have some additional doc for the Gemini JPA project that I will be putting on the wiki today.
Quote:So we have a open prototype implementing the full stack of a web application using the Gemini projects and Vaadin framework in the frontend, except at the moment Gemini JMX, and deployed in Virgo. So we are willing to donate this application to EclipseRT, to use it as a guide or 'PetShop App'. How can we do it?
Hmm, that is a tough one. We would love to have it in the Gemini project, but the upward dependencies on Vaadin and Virgo might not make Gemini the best place to host it. However, if you can enter a bug in the Demos component of the Gemini project and attach the demo then we can take a look and see if we can use it? Thanks very much!
|
|
|
|
| Re: Gemini JPA + Gemini Naming [message #989315 is a reply to message #987836] |
Wed, 05 December 2012 10:57  |
Mike Keith Messages: 186 Registered: July 2009 |
Senior Member |
|
|
Hi David,
Sorry for the delay. Version 1.1 was released but unfortunately the JNDI support did not make it in. I will make it a priority in the work for 1.2, though, so you should see it in the next milestone.
Did you try to use the workaround solution (2) I described above by first looking up the data source yourself and then passing in the data source as a property to the builder?
-Mike
|
|
|
Powered by
FUDForum. Page generated in 0.01871 seconds