users@glassfish.java.net

Re: glassfish-resources.xml yields Invalid Resource error

From: Duncan Bloem <dabloem_at_gmail.com>
Date: Mon, 22 Aug 2011 22:25:05 +0200

ok, I will try the res-type from h2, because I do have some locking
problems when the same record is updated twice in the same jta
transaction.
So, if anyone also encounter time-outs caused by locking, I am glad to
see the solution. (btw, I use arquillian for testing)

Duncan

On Mon, Aug 22, 2011 at 9:28 PM, Laird Nelson <ljnelson_at_gmail.com> wrote:
> On Mon, Aug 22, 2011 at 3:00 PM, Duncan Bloem <dabloem_at_gmail.com> wrote:
>>
>> I have a similar glassfish-resources file for testing, but use
>> - res-type="javax.sql.DataSource"
>> - no serverName property
>> - and a simple jndi-name="jdbc/hsql"
>
> Thanks, Duncan; perhaps the jdbc:app:/ prefix is not necessary here...I'll
> try that.  The reason I have a different res-type is because H2 recommends
> it (see bottom right): http://www.h2database.com/html/cheatSheet.html
>
> Best,
> Laird
>
> --
> http://about.me/lairdnelson
>
>