Yep. I do it with JBoss 3.0 beta. I'd recommend you make a copy of the jboss directory tree and then modify several conf files. I don't know what they are with 2.2.2. If you use 3.0 beta, you need to modify three files under conf/default:
You just need to change the port settings so the two instances of JBoss don't conflict. The principle is the same for JBoss 2.2.2, but I don't know the specific files.
Thanks for immediate Reply.
I found standardjboss.xml and auth.conf but couldnt find jboss-service.xml
Can I run both JBOSS instances as different Windows Services?
I found it.
I changed port settings for the following files and it worked
dont ask me why i changed these files. but it worked.