Our developers must first develop the application on their local and then version to dev environment for testing as a version.
I have currently two ideas.
1) Every developer installs to his own computer a glassfish server. When the change is ready, the deployment is done to the glassfish dev server.
2) Every developer has a domain on glassfish dev server. And there is one more domain which acts as a dev server. When the change is ready, deployment is done to the dev server domain.
I'd like to try my second idea ( one domain for each developer in same glassfish installation ). Is it possible ? What is the best practice for that ?