• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
  • Tim Holloway
  • Carey Brown
  • salvin francis

Jboss Seam - Confusion on Project Structure

Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used Jboss tools within eclipse to create a new "Seam Web Project". When it was done, it created following 4 folders:

  • myproject

  • 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?

    Hoping for quick reply

    Thanks in advance
    Ranch Hand
    Posts: 38
    Eclipse IDE Tomcat Server Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi Varun.
    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.
    All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
    create, convert, edit or print DOC and DOCX in Java
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!