Hi Igal

On Fri, May 18, 2012 at 7:55 PM, Igal <[email protected]> wrote:
> +1

In the meantime, you can check out mine at this url
https://gist.github.com/2727189

You can use it from your servlets with some convenient static methods:

    Connection conn = DbStarter.getConnection();
    try {
       // use the connection
    } finally {
        conn.close();  // always remember this.
    }

or

    DataSource ds = DbStarter.getDataSource();

or use ServletContext.getAttribute("connection"); or
ServletContext.getAttribute("datasource") if you prefer.

I'm using it in my app, so far I got no problems.

Cheers,

Luigi.

-- 
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