> All that may not be necessary. Personally, I avoid using JNDI, data
> sources, and so on. It's complicated and doesn't help much. That's
> just my personal view :-) There are some advantages (connection pools
> may be a bit faster), but it's complex.
>
> Regards,
> Thomas

Thanks for your reply Thomas.  I really appreciate the opportunity to
receive answers here on your forum from such knowledgeable java
programmers and I'm trying not to abuse it.  Most forums don't seem to
have any patience with newbies.

I'm convinced that the problem is not h2, but rather my lack of
understanding about how my IDE and glassfish function, both separately
and in tandem.  I'm using netbeans and trying to access a very simple
test database within the directory structure of my web app using an
older embedded version of h2, version 1.1.118 I think.  It's one that
I had downloaded a while back.  I've downloaded the new one now though
and I'm going to start messing with it. [Beware]

It's really probably more of a netbeans problem.  I am having trouble
getting my application to use the version of the h2 library that I
have placed in my WEB_INF/lib folder and it insists on using the one
residing in my local file system, hence the little test databases all
over my computer.  For the purposes of my web app I have not yet
figured out the secret handshake to get my code to run in the context
of my web app's directory structure, nor have I been able to get
netbeans to successfully deploy the app directly to glassfish from the
IDE as per the directions in netbeans help files.  I can only assume
that I'm missing something somewhere and in time I will find it.

Though I haven't done it yet [too busy reading pdf's] I am going to
begin by manually deploying my app to glassfish to see if it works
there...which is the reason I'm reading up on datasources, resources
and connection pools.  It appears that glassfish wants these things in
order to properly run a database.

I could always just use the the built in JavaDB [AKA Derby] because
it's already preconfigured in glassfish.  But then, how much fun would
that be?  ;-)

Mark

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to