Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


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

Posted on 2008-11-18
Medium Priority
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

Expert Comment

ID: 22993104
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)

Accepted Solution

Mr_It earned 375 total points
ID: 22994955

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
This video teaches viewers about errors in exception handling.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month15 days, 19 hours left to enroll

580 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