Why don't we just let each middleware/gateway/application handle configuration by itself? Sure, it's a pain, but it's the defacto way to do it. The other option I see would be inventing something similar to JNDI...