Thanks for your reply, I try to re-elaborate my question.
I need to use the same EJB Module (ModuleEJB) and Har module (ModuleHar) in two different ear packages. Basically these modules are the same in both ears except that they need to connect to different databases and, as the 2 ears can be deployed in the same JBoss instance, they have to use different JNDI entries to avoid conflicts.
I use the ant task after deployment to obtain the correct ear, but it’s not an automatic task and can create problem for the production deployment.
So the question is: how can I efficiently package these two ear in MyEclipse? Should I create different modules (ModuleEJB1/ModuleEJB2 and ModuleHar1/ModuleHar2) with different configuration files? Should I override the configuration files outside the modules in the 2 ear projects?
Any suggestions is appreciated.
Thanks a lot for your support
Daniele