Could you please explain in more detail the third step of your suggested solution?
I'll add this functionality to Deployers trunk asap -- declarative way to create new domains.
It should be portable to other Deployers versions as well.
Is there any documentation about creating a custom deployer in Jboss 5?
* http://java.dzone.com/articles/jboss-microcontainer-virtual-deployment-framework
And also, if i understood correct, should I use this custom deployer for deploying my war (this implies that the TomcatDeployer will not be used?)
Deployers in AS5/MC work differently -- read the article to get a better insight.
It's a chain of deployers, not just a single deployer, hence TomcatDeployer will still kick in.