I have multiple session beans and used XDoclet to generate interfaces and ejb-jar.xml files. So each bean has a separate ejb-jar.xml file. When packaging the application for the deployment, I want to pack all the ejbs in a single JAR, which will then be put inside an EAR. But how to use XDoclet to merge those multiple ejb-jar.xml files so that I can put into META-INF/ of the JAR file?
Make sure all the beans are build in one xdoclet ant task. You can have source files from different directories.