users@glassfish.java.net

Re: JPA (hibernate provider), hosted in glassfish, does not fetch data

From: <glassfish_at_javadesktop.org>
Date: Tue, 26 Jan 2010 15:42:41 PST

Each installation uses it's own database. The windows vista installation work now. The linux installation does not fetch data until now. It does not throw an exception either. The database has got data. The code is the same on all of the three installations.
The fanny thing is that the linux domain.xml file is correct. It shows the connection pool and the jdbc resource that I have created. While the windows vista domain.xml, which does work, does not mention neither the connection pools nor the jdbc resources that I have created. I use the same mysql odbc driver on windows and linux.

>Can you please make sure that the created data source points to same
>database. You can compare the corresponding domain.xml entries to assert
>this.

>On 1/25/2010 2:55 PM, glassfish_at_javadesktop.org wrote:
>> I have set up a data source to a database on glassfish (version 2.1.1 and version 2.1) Ping to data source is successful from both servers. I run v2.1.1 on linux (database mysql 5.1) and v2,1 on windows vista (database sql server 2008). I use hibernate on both servers. My project does not fetch data from both servers but it does not throw any exception. I run my project on a third installation too. On the later installation I use glassfish v2u2 on windows XP. It connects to both mysql and sql server 2008. This installation does fetch data from both a mysql and a sql server 2008 database.
>>
[Message sent by forum member 'pneiros' (pneiros_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=383132