persistence@glassfish.java.net

Re: non-jta-data-source doesn't work with Tomcat 5.5?

From: Tom Ware <tom.ware_at_oracle.com>
Date: Mon, 26 Feb 2007 10:23:31 -0500

Hi Jon,

  There is some work on the way that may help you with two of your issues:

https://glassfish.dev.java.net/issues/show_bug.cgi?id=2492*

*

* *Hopefully this will solve your issue of using a data source in Java SE.

   In addition, allowing the datasources information to be specified as
properties should allow you to determine when you create your JavaSE
EntityManagerFactory which datasource you want to connect to.

-Tom**

Jon Miller wrote:

>No one knows the answer to this? I'm not looking forward to having to
>restart my app everytime the database goes down, so, I'm hoping to get GP
>working with Tomcat's connection pool which I've used with Hibernate in the
>past without problem. While it may be the case that Tomcat's JNDI
>implementation isn't what it should be, I believe it's important that GP
>work with it because a lot of users will probably try to use it that way. I
>wasn't able to get it to work using the latest build of GP. This IMHO isn't
>something you shouldn't have to use a customizer to get working.
>
>Jon
>
>----- Original Message -----
>From: "Jon Miller" <jemiller_at_uchicago.edu>
>To: "Glassfish Persistence List" <persistence_at_glassfish.dev.java.net>
>Sent: Tuesday, February 20, 2007 4:53 PM
>Subject: non-jta-data-source doesn't work with Tomcat 5.5?
>
>
>
>
>>Hi all,
>>
>>I'm using GP V2 B36 with Java 1.5.0_09 and Tomcat 5.5.17. I've been having
>>problems with Glassfish Persistences built-in connection pool not handling
>>broken connections correctly. Specifically, it seems to have problems
>>dealing with the fact that MySQL times out connections after 8 hours. So,
>>I decided to try to use the non-jta-data-source setting instead and use
>>Tomcat's connection pool. However, I can't seem to get it to work. I found
>>the following article which indicates it doesn't work unless you use a
>>customizer. Can anyone confirm whether this is the case?
>>
>>http://forums.java.net/jive/thread.jspa?messageID=189962
>>
>>Jon
>>
>>
>>

--