> Just another way:
> For my classes in the jar-files I put my *.properties into the jboss\conf
> directory and load the file through the getResource mechanism
I've found it is easyer to use only resource bundles for localization and
jndi.properties for other cases.
You may have several jndi.properties in classpath and everything will be
combined in one environment.
Use is simple:
InitialContext ic = new InitialContext(); // anyway we have to do
this
Hashtable p=ic.getEnvironment();
String s=(String)p.get("name_we_need");
but at last I decide to put customization into deployment descriptors (
ejb-jar.xml for EJBs). Necessary values will be then retrieved via
ic.lookup("java:comp/env/name_we_need");
Anyway we have to do some customization in deployment descriptors.
Vale! - Mikhail Akopov
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user