my dog learned polymorphism*
The moose likes Other Application Frameworks and the fly likes Jboss Seam - Confusion on Project Structure Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Jboss Seam - Confusion on Project Structure" Watch "Jboss Seam - Confusion on Project Structure" New topic
Author

Jboss Seam - Confusion on Project Structure

Varun Chopra
Ranch Hand

Joined: Jul 10, 2008
Posts: 211
I used Jboss tools within eclipse to create a new "Seam Web Project". When it was done, it created following 4 folders:

  • myproject
    myproject-ear
    myproject-ejb
    myproject-test


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


    -Varun -
    (My Blog) - Online Certifications - Webner Solutions
    Mahendr Shinde
    Ranch Hand

    Joined: Sep 03, 2011
    Posts: 38

    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.


    There is still lot to learn!
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Jboss Seam - Confusion on Project Structure
     
    Similar Threads
    how to map composite objects to database
    ClassNotFoundException - but the class is there
    Package not found error in JSP
    Regarding war creation in Maven
    Classpath and folders