I'm also facing the same problem. How did you solve this problem. Can you please explain it of how you have done so that I too can do it.
Regards and Thanks,
You can have your EJBs depend on MBeans. Use in the jboss.xml format (refer to the DTD.)
You can also programmatically deploy and undeploy files using the MainDeployer. Check out the JMX console for MainDeployer. Also look at the interfaceorg.jboss.deployment.Deployer ...