Yes you can.
Enable the Binding Manager service from your jboss-service.xml and configure the port bindings so that they won't conflict with two separate instances. That's all you need to do.
refer to the jboss administrator and development manual. Chapter 10 Services Binding Management, Running Two Jboss Instance.
I have just bought JBoss doc as you suggest in order to run two Jboss instances on the same machine (my finality is to run some clustering tests).
Ant runs successfully but when I start jboss0 and jboss1 instances I get a lot of exceptions.
So I was wondering if the example that comes with the doc works with the 3.2.2 version I am using.
And more precisely does anyone knows how much of the doc is updated to work with the 3.2.2 version ?References are pretty messy in there: from 3.0 to 3.2 it is hard to know what we are talking about.
But I guess this last question belongs to the documentation forum.
What exactly are these "lot of exceptions" then?
Thanks for asking, I managed to get it work but it isn't as straightforward as you would expect when you pay for the doc.
After a while of looking at things I managed to figure out what belonged where and although I gained a better understanding of the internals of the server it took me time...