-
EAC4J: Apache Commons Configuration via JNDI (7 messages)
- Posted by: Frank Martinez
- Posted on: August 24 2008 22:28 EDT
With EAC4J (External Application Configuration For Java) you can externalize your application’s configuration with Apache Commons Configuration and get a Configuration Object via simple JNDI lookup. The isolated classloader decouples all needed classes and dependencies from your application except by one interface. This is a simple Wrapper over Apache Commons Configuration, so you get all the power of it but decoupled from any additional dependency jar. And additionally you can easily reload the configuration without restart the server. This was initially developed for Glassfish V2 and has been tested on it only, but I think it would be easy to port to any other. See the article: http://www.ibstaff.net/fmartinez/?p=52Threaded Messages (7)
- Re: EAC4J: Apache Commons Configuration via JNDI by arjan tijms on August 25 2008 18:11 EDT
- Re: EAC4J: Apache Commons Configuration via JNDI by greg matthews on August 25 2008 19:23 EDT
- Re: EAC4J: Apache Commons Configuration via JNDI by Frank Martinez on August 25 2008 22:14 EDT
- Re: EAC4J: Apache Commons Configuration via JNDI by arjan tijms on August 26 2008 15:55 EDT
-
Re: EAC4J: Apache Commons Configuration via JNDI by greg matthews on August 26 2008 11:20 EDT
-
Re: EAC4J: Apache Commons Configuration via JNDI by arjan tijms on August 27 2008 09:32 EDT
- Re: EAC4J: Apache Commons Configuration via JNDI by greg matthews on August 27 2008 08:48 EDT
-
Re: EAC4J: Apache Commons Configuration via JNDI by arjan tijms on August 27 2008 09:32 EDT
-
Re: EAC4J: Apache Commons Configuration via JNDI by greg matthews on August 26 2008 11:20 EDT
-
Re: EAC4J: Apache Commons Configuration via JNDI[ Go to top ]
- Posted by: arjan tijms
- Posted on: August 25 2008 18:11 EDT
- in response to Frank Martinez
Sound interesting. I'll definitely give this at try. -
Re: EAC4J: Apache Commons Configuration via JNDI[ Go to top ]
- Posted by: greg matthews
- Posted on: August 25 2008 19:23 EDT
- in response to Frank Martinez
I'll take a look, but I just typically deploy a JMX module (a .sar) in JBoss in each environment (DEV, UAT, PROD) with all the config properties. That way, the .war deployed is *almost* config-less, except for c3p0 settings, since I don't trust JBoss connection pooling. -
Re: EAC4J: Apache Commons Configuration via JNDI[ Go to top ]
- Posted by: Frank Martinez
- Posted on: August 25 2008 22:14 EDT
- in response to greg matthews
Nice approach. I will explore JMX in glassfish ... -
Re: EAC4J: Apache Commons Configuration via JNDI[ Go to top ]
- Posted by: arjan tijms
- Posted on: August 26 2008 15:55 EDT
- in response to greg matthews
except for c3p0 settings, since I don't trust JBoss connection pooling.
Slightly off topic, but why don't you trust Jboss connection pooling? -
Re: EAC4J: Apache Commons Configuration via JNDI[ Go to top ]
- Posted by: greg matthews
- Posted on: August 26 2008 23:20 EDT
- in response to arjan tijms
1. Since moving to c3p0 my app is solid, and doesn't crash with out of connection messages. 2. The comments in the JBoss connection pool code scare me.except for c3p0 settings, since I don't trust JBoss connection pooling.
Slightly off topic, but why don't you trust Jboss connection pooling? -
Re: EAC4J: Apache Commons Configuration via JNDI[ Go to top ]
- Posted by: arjan tijms
- Posted on: August 27 2008 09:32 EDT
- in response to greg matthews
I see, any pointer to one of these comments?except for c3p0 settings, since I don't trust JBoss connection pooling.
Slightly off topic, but why don't you trust Jboss connection pooling?
1. Since moving to c3p0 my app is solid, and doesn't crash with out of connection messages.
2. The comments in the JBoss connection pool code scare me. -
Re: EAC4J: Apache Commons Configuration via JNDI[ Go to top ]
- Posted by: greg matthews
- Posted on: August 27 2008 20:48 EDT
- in response to arjan tijms
I see, any pointer to one of these comments?
http://fisheye.jboss.org/browse/JBossAS/trunk/connector/src/main/org/jboss/resource/connectionmanager/JBossManagedConnectionPool.java Try Googling for JBoss connection pool leak. I think JBoss is great, I just time have time to faff about with their dodgy connection pool in a production system.