I thought you could put anything you want in a JNDI tree, you just need an appropriate object factory?
For putting strings in the JNDI tree, I use this component (
http://www.manorrock.com/documents/glassfish/independent.html). I've used it for a year or so and it seems to work quite well. (There's a bug with injection -- so you have to do an InitialContext lookup rather than a @Resource injection, but other than that it works fine)
--- On Thu, 26/2/09, glassfish_at_javadesktop.org <glassfish_at_javadesktop.org> wrote:
From: glassfish_at_javadesktop.org <glassfish_at_javadesktop.org>
Subject: Re: How to do simple JNDI String bindings?
To: users_at_glassfish.dev.java.net
Received: Thursday, 26 February, 2009, 12:10 PM
It's the same for me too...why wouldn't you provide the ability to add String value to the JNDI tree. For instance, all we need is a simply string and we manage our properties in our application using commons-configuration based on the string value being DEV, TEST, PROD. This is basic stuff!
[Message sent by forum member 'lsacco' (lsacco)]
http://forums.java.net/jive/thread.jspa?messageID=333891
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net