i'de like to do something similar, but in my case i want to have multiple instances of the same application as we a providing our product as a hosted solution and having multiple jboss instances all on their own ip address would seam rather wasteful
Yes it is possible.
You'll have to use scoped classloading which is the default for version 404 AFAIK.
Look at the Wikis for this topic.
For the web-modules in aplication.xml we use this:
<module> <web> <web-uri>ws-sales.war</web-uri> <context-root>/mbi-ws/@NAME@/sales</context-root> </web> </module>
@NAME@ is replaced with a concrete name like "prod" or "test" on packaging/deployment.