users@glassfish.java.net

Re: How do I make a connection pool less accessible?

From: <glassfish_at_javadesktop.org>
Date: Tue, 06 May 2008 03:47:50 PDT

You can set the <res-auth> type in ejb-jar.xml to "Application" so that application will always have to provide username, password.
eg: dataSource.getConnection("user","password");
You can refer :
https://glassfish.dev.java.net/source/browse/glassfish/appserv-tests/devtests/jdbc/appauth/
[Message sent by forum member 'jr158900' (jr158900)]

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