Utilizing AOP or JNDI (prefered) would be a better solution IMO.
Why would these be better?
Also, can you elaborate on what you mean by JNDI? Do you mean that the MDB should be able to reference an external configuration via JNDI?