users@glassfish.java.net

Accessing jndiName programatically

From: <glassfish_at_javadesktop.org>
Date: Wed, 05 May 2010 07:09:33 PDT

I would like to build a list of the jdni names (jdbc connections) to use in setting jdbcTemplate(s) programatically.

Looking at the api - http://javadoc.glassfish.org/v3/apidoc/ - I was not sure there is a way at getting at these values, stored in the domain.xml under the domain config dir:
  <server name="server" config-ref="server-config">
  <resource-ref ref="jndiName" />...
  </server>

There may not be an alternatve to attepting to read this file form the server?

Any thoughts appreciated.
[Message sent by forum member 'boardtc']

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