This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I got them all directly under workspace without a common parent folder. There was no build.xml. But it was already deployed and I was able to republish it after making changes. It also picked my changes to xhtml files directly without redeploy.
On the other hand, one of my teammate created new project "from database" using seamgen. The structure seamgen generated is more compatible with standard j2ee projects structure. There is a common parent folder 'myproject'. myproject has a build file, src, dest, lib, view etc. folders. He's able to use ant script file to build and deploy code. But his changes to .xhtml files are not picked by itself. My questions are:
1. Why in first case it generated a scattered structure with no common folder and why does it not match standard j2ee structure, why there is no build file?
2. How can I make it autodeploy changes to xhtml files in second case?
3. In second case, it also generated view, entity and session beans for each database table. Now if I add a new column to a database table (only one table), how can I update code "only for that table" in whole project? When I searched references to java entity class for that table, it shows 65 matches in project. Am I supposed to make this change manually at 65 places or is there a better way to update code?
The project structure used by seam-gen is different that structure used by Seam Tools (plug-in of eclipse). Your friend has used "seam-gen" to generate project with ANT build script. Your project is basically an eclipse WTP project with EAR, EJB, WEB & Test modules (eclipse will report each folder as PROJECT!)
You can build, run, deploy your project without using any build.xml (ANT) file.