I have one ear file and separate war file for each instance. I have successfully created multiple instances. Like i can open application with http://domain.com:8080/appname and http://domain1.com:8080/app1name. Then i want to connect to different database using each instance. Now using instance-service.xml i have deployed for each instance but jboss is connecting to only one database.