Hello!
Let's look at a simple JavaSE application. I can store some configuration params of such application in .properties file and then load it at runtime. So I can change configuration params later without recompilation of my program. [b]I want a functionality similar to java.util.Properties but in JavaEE5 and GlassFishV2UR2.[/b]
1) Of course I can store my config params in a relational database... But It's not very convenient way.
2) Maybe I should use Custom JNDI resources? In Admin Console -> Resources -> JNDI -> Custom Resources. [b]What Factory Class should I supply to create a custom resource of type java.lang.String?[/b] Are there standard factory classes for simple objects?
3) I've read about <env-entry> tag in ejb-jar.xml deployment descriptor. [b]Does sun-ejb-jar.xml have similar tag?[/b]
Please, help me.
Best regards, vlkv.
[Message sent by forum member 'vlkv' (vlkv)]
http://forums.java.net/jive/thread.jspa?messageID=331739