What is standard folder structure for an enterprise application using Spring, Hibernate, EJB, Web services

Posted on 2008-11-18
Last Modified: 2013-12-10

I want to start working on application using Java, J2ee, Spring, Hibernate, EJB, JUnit.
Can somebody tell me what could be the best folder structure to follow for an enterprise application where I'll be generating war, jar and ear.

Question by:Mandar1105
    LVL 8

    Expert Comment

    It would depend upon what application layers you have. A normal best practice is to use the different layers as parent structures. You may choose a variation, where you use your modules as parent folders and then, use the layers.

    For eg:-

    <app root src>
          |---------------web       (spring/jsp)  
          ----------------entities (hibernate entities)
          ----------------process (session ejb stuff)
          ----------------utilities  (helper classes)
    <app root test> (follow same structure as above and have junit tests for different layers)
    LVL 4

    Accepted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Suggested Solutions

    Title # Comments Views Activity
    VB Script 3 60
    tenRun challenge 28 67
    PGP Decryption code using Bouncy Castle jars 11 69
    What is JNDI datasource in spring 1 18
    Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
    Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
    Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
    Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now