I have deployed a web service with Jax-ws that use a database for storing some state. I have packaged everything inside a EAR application and deployed it with Glassfish. I want to deploy multiple copies of this application on the same server (and then the same physical machine) but Glassfish does not allow it. Each application need to have a different WS endpoint (that is different url and/or port) and a different database so that each web service mantains its own state.I have deployed a web service with Jax-ws that