users@glassfish.java.net

Re: Binding a URL into JNDI

From: <glassfish_at_javadesktop.org>
Date: Thu, 10 Jul 2008 21:20:39 PDT

In GF Console, go to Resources . . . JNDI . . .Custom Resources.

You can add JNDI entries there, but note that you'll need to provide a factory-class.

The alternative is to use javax.naming LDAP operations to create something and put it in there with a startup class.

There might be other approaches as well.

I have long though that app-servers need to make available a simple mechanism for putting in and maintaining simple things like this. A factory-class to return a single string seems a bit heavy-handed.
[Message sent by forum member 'primeq' (primeq)]

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