users@glassfish.java.net

Re: JDBC Configuration Via Context.xml

From: <glassfish_at_javadesktop.org>
Date: Thu, 18 Oct 2007 15:15:55 PDT

I was able to get this to work as Amy outlines.

On the Glassfish side

- Create the connection pool, in my case mysqlpool
- create the JDBC resource jdbc/mysql
- create your context.xml with your resource

I have attached a simple netbeans project which consists of a index.jsp which uses jstl to access the db and uses context.xml to configure the resource instead of web.xml.


If your problem is different, please update the example.

Regards
Lance
[Message sent by forum member 'lancea' (lancea)]

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