The jndi.properties file is for configuring the jndi system, i.e tell it where the
JNDI server is etc. In other words you do not bing your properties there.
To bind stuff to JNDI, you need to do something along the lines of:
| String myname = "something/test/TestObj";
| Object obj = "Xyz";
| InitialContext ctx = new InitialContext();
| Name name = ctx.getNameParser("").parse(myname);
| ctx.bind(name, obj);
|
(java: at the start of a name means that the property should not be accessible outside
the JVM)
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3850746#3850746
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3850746
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user