Currently the auto deployer only kicks in if you have no openejb-jar.xml file at all. If you do have an openejb-jar.xml it assumes it is correct and does nothing.
The code to modify an existing openejb-jar.xml is present in the AutoConfigAndDepoy class, we simply need to merge some logic over or improve that class so it can be used instead of the AutoDeploy class.
Description
Currently the auto deployer only kicks in if you have no openejb-jar.xml file at all. If you do have an openejb-jar.xml it assumes it is correct and does nothing.
The code to modify an existing openejb-jar.xml is present in the AutoConfigAndDepoy class, we simply need to merge some logic over or improve that class so it can be used instead of the AutoDeploy class.