How have you ensured that the app1 and app2 servers use their own ports? Have you used the Service Bindind Manager http://www.jboss.org/file-access/default/members/jbossas/freezone/docs/Server_Configuration_Guide/beta422/html/Additional_Services-Services_Binding_Management.html
yes, I have. I am using the default for app1 and 'port-01' for app 2, so the default ports are 1099 and 1199.
So finally what I did was, since I wanted custom ports, I changed these to the custom ports (in jboss-service.xml for app1 and my-bindings.xml for app2 ) and now thigns appear to be working.
But best practise wise, where should one define these ports? in the jboss-service.xml, custom-bindings.xml or jndi.properties?