users@glassfish.java.net

Re: Need for direct jdbc connection information in EJB (url,login,password)

From: <glassfish_at_javadesktop.org>
Date: Fri, 18 Jan 2008 06:38:25 PST

How about connection.getMetaData().getURL(), etc.?

If you can't call getMetaData() on the wrapped or pooled connection, maybe you can use JDK6's connection.unwrap() method to get to the underlying connection and get more info.

But I wonder why you got an exception from GlassFish. You obtained a datasource through injection or JNDI lookup? What exception did you get when you did what?
[Message sent by forum member 'dkoper' (dkoper)]

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