I am just starting out with Java EE development and as an exercise I am trying to set up a basic project development cycle using Eclipse and Glassfish.
I am looking at something like the following setup (I think) – Develop a project in Eclipse (say Project1) and deploy it on local glassfish server via exploded directory deployment. Synchronize project files between project being developed in Eclipse and those in the exploded directory via FileSync plugin so the deployed application can be dynamically reloaded.
1) Where in the glassfish directory hierarchy should the exploded directory for Project1 be located? What is the proper way to set it up (I was thinking use asadmin deploy Eclipse/workspace/Project1, I’m not sure if that is correct)
2) Are there any additional things (configurations/etc) I should be aware of and take into account.
I’ve been unable to find any conclusive answers from looking around (or haven’t recognized them, anyway). Any help or pointers in the right direction from anyone who has done this before would be much appreciated.
You don’t need to set things up manually. There is a GF plugin for Eclipse, which provides a nice integration including the “redeploy on save”. See http://glassfishplugins.java.net/eclipse36/ for more info.