users@glassfish.java.net

Re: Is is possible to do per user database connection pooling with Glassfis

From: <glassfish_at_javadesktop.org>
Date: Wed, 22 Aug 2007 07:52:27 PDT

If you want to access database using multiple user credentials, it is possible.
Configure the pool with default (mostly needed) username & password. For specific users,
you can use
datasource.getConnection("user","password")
http://java.sun.com/javase/6/docs/api/javax/sql/DataSource.html

Please let us know if you are looking for any other usage scenario.
[Message sent by forum member 'jr158900' (jr158900)]

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