I would most likely use the second format. I grep config files all the time.
+1 it is better to write fully qualified properties names

I prefer <Properties> for the simple reason that it reinforces the idea that the syntax is that of a Java properties file (with XML escapes, nota bene).
+1 it is simple
Otherwise I think I prefer <PojoContext> over <ClassContext>.
I think that config files are mostly for deployers/IT admins, so "Pojo" is a stop word.

I prefer
AppContext --> for EAR and/or single collapsed application in a WAR
WebAppContext --> for WARs
ModuleContext --> for EJB Jars
Properties/Configuration --> for any managed bean/pojo


One question: It is possible to create a bean and map it directly to the JNDI namespace of the component ? so that it is available using @Resource

- Enrico


Reply via email to