An EFFECTIVE development directory structure for J2EE platform?

Hi, here we r talking about deployment environment more than development
environment. Have u ever think about designing an EFFECTIVE development
directory structure for J2EE platform( e.g. weblogic )? u r not using the
deployment directories for coding, r u? :)
I used to construct a dir structure for dev and want to improve it.
d:/wholesystem/*.prj // Project files
...../module1/src/com/.... // Module source files
...../module1/doc/... // Module doc files
...../module1/classes/... // Module class files
...../module2/...
...../web/*.jsp // web page files
...../web/images/... // web page images
...../web/WEB-INF/... //...
Do u have any good ideas? Thanks!
* Name: Gary Wang
* Tele: 010-65546668-8119
* Mail: [email protected]

Create a web-inf folder at the same level of src and
jsp folder inside src
i mean
/build.xml
/src/
/src/java/<package>/...../*.java
/src/demo/<package/...../*.java
/src/test/<package>/....../*.java
/src/jsp
/web-infSo, would you put in /src/jsp only the *.jsp?
And what in /WEB-INF ? What woud you put there? Would you do something like:
/WEB-INF/web.xml
/WEB-INF/src/<package>/..../<my_servlets_and_j2ee_stuff>.java
/WEB-INF/classes/<package>/..../<my_servlets_and_j2ee_stuff>.java
In this manner sources and classes are in the same tree, it does not seem very clean to me, expecially if you consider that probably I must have a "test" directory to unit test some j2ee stuff (as for the j2se stuff in "src"): how would you do that?
Is this directory structure anyway what you meant or not?
alessio

Similar Messages

  • Sun Certified Web Component Developer for J2EE Platform (CX-310-080)

    Hi every one !
    I want to prepare for the Sun Certified Web Component Developer for J2EE Platform (CX-310-080), I want to know if there some good books that you advice me to work on it
    Thank you in advance for any answer :)
    Rania +

    ISBN: 1930110596
    ISBN: 1861007701
    ISBN: 1932394389Not published yet.
    Good Luck

  • Directory Structure for Discoverer

    Hi,
    I have couple of queries...
    1. What is the directory structure for discoverer on Unix in Application Server?
    2. Is there any extention for the woekbook saved in the database like .dis?
    I am working on discoverer 10g with Oracle Apps.
    Thanks...

    1. On a Solaris machine where I have Discoverer 10g (9.0.4.3) installed the directory structure for the Oracle home looks like this:
    $ cd h9043
    $ pwd
    $ /home2/h9043
    $ ls
    Apache install.platform opmn srvm
    BC4J inventory oracore sso
    JRE j2ee ord syndication
    OPatch javacache otrace sysman
    assistants javavm oui tk
    bibeans jdbc owm tools
    bin jdk perl uat
    browser jinit plsql uddi
    cfgtoollogs jis portal uix
    chgip jlib precomp ultrasearch
    config jpi procbuilder90 upgrade
    dbs jre rdbms ut
    dcm jsp relnotes vbroker4
    diagnostics lbs reports wcs
    discoverer ldap root.sh webcache
    error.txt lib root.sh.old webservices
    forms90 mesg slax wireless
    guicommon9 mp soap xdk
    iaspt network sqlj zrc
    install ocommon sqlplus
    2. The ability to save workbooks to a file system is available only on Discoverer Dekstop, which runs on Windows.
    Thanks
    Abhinav
    Oracle Business Intelligence Product Management
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    Documentation: http://docs.oracle.com/
    Discoverer: http://www.oracle.com/technology/products/discoverer/
    BI Software: http://www.oracle.com/technology/software/products/ias/devuse.html
    BI Samples: http://www.oracle.com/technology/products/bi/samples/
    Blog: http://oraclebi.blogspot.com/

  • Application Development Directory Structure

    I work with a team consisting of five programmers who want to rewrite a suite of software developed in C/C++ to Java. This will consist of numerous application programs; none of which are web-based. We use the UNIX OS and will access an Oracle database using JDBC. We also maintain our source code using CVS. We want to deploy each of our applications as a separate jar file. We would also like to identify either individual applications or groups of applications as Java packages. Our problem is setting up our development directory structure. We've been struggling with various structures, most of which work fine if our source files don't have a package statement, but we've had no luck finding a package statement that works.

    They aren't "extraneous levels", they are fundamental
    requirements of Java. Have a look at this
    http://java.sun.com/docs/books/tutorial/java/interpack/
    ackages.html. Any beginner Java book/article/tutorial
    should explain packages.Thanks for the url, I have perused numerous java books and searched the Sun site, but haven't found anything precise. In some locations I've seen it recommended to separate the source and classes in different directories, while other sources have them together in one file.
    Also, in response to an earlier comment, I think
    having different related applications under the same
    development tree and separated by packages is much
    easier to maintain/use/develope than having them all
    completely separate.We will have approximately 50 applications, with about 25 related to one application area and the other 25 related to another application area. The source for each of these application areas will be under CVS. To me it doesn't seem like the most convienent way to manage the software. But we'll have to do what we'll have to do.

  • Is there a suggested directory structure for iTunes?

    Is there a suggested directory structure for iTunes? I have moved my library around several times (what with new machines, etc.) and I find that I have two app libraries in different locations and I think it is the problem behind a refusal to sync issue I'm having with my iPad.
    Any help would be gladly appreciated!
    Luke
    (Screen grabs a great help)

    I'll see your Tb and raise you some - the truth is, almost every major revision and data migration from MBP to MBP and now back to a MP has caused replication of folders in the strangest of places, none of which I have consciously created - I mean, why would anyone except out of self-focused spite want to create three different sets of apps folders - to say nothing of the interminable Compilations folders that sprout from no where in particular!
    I could understand the issue if I was careless or a complete neophyte,  I only moved to the Apple platform about 6 years ago, (even though I've been using the platform since 1987) when I went to work for the company.
    iTunes I think is a little like a cat - it recognises my lingering, subyle antipathy and rolls all over me just to mess with my head!
    Thanks for the information, none-the-less, greatly appreciated.

  • Directory structure for servlets and webservices in one application

    hi,
    Can any one help me for creating servlets and webservices in one
    application and deploying in Jboss 4.2.0.
    I want to know exactly what is the directory structure for creating this
    application and what are the additional .xml files for deploying this application.
    if any one know this answere please tell the answere.

    I figured out a solution - it's a problem of policies. In detail: Server1's codebase entry (file:) refers to the class directory of Server1's project. In the simple case of only Client1, which has no codebase entry, it works fine without a file permission on the side of Server1. In the complex case of Client1+Server2, which has to have a codebase entry (file:) refering to the class directory of the Server2's project on a separate machine, for exactly the same method call from Client1 to Server1 a file permission entry on the side of Server1 is needed for Server1's class directory. But WHY ???
    It seems to be a little confusing with the codebase entries, many of the posts are contrary to others and to my personal experiences. Some comments given by Adrian Colley throw a little light upon some aspects. Is there anybody, who can explain the whole topic, when, why, and which part of RMI application deals with codebase entries, also in case of not dynamic code downloading ? May be there is also a reference into the java docs, which I didn't found up to now.
    Thanks in advance
    Axel

  • What should be directory structure for Custom MDS files?

    Hi,
    I have personalize a page and then exported the personalization.
    Now my requirment is to migrate this personalization to other server, for which clients want steps specific to UNIX.
    My doubt is where should I copy these files on the server to import the personalization using XMLImporter command? ( Client do not have JDev on his server, so can not use impot command)
    my custom_top structure is like '/u02/int/applmgr/CUSTOM/xbol/11.5.0'
    The customization is part of product 'OTA'
    I am confused about where to put(Directory structure on custom top) customization and other MDS file to import using XMLImport.
    This customization is also using a Custom LOV for which, I have given the path xbol/oracle/apps/ota/admin/enrollment/webui/XbolGradeRN.
    For now I have transfered the file from window based JDeveloper and things are working fine. I need the UNIX directory structure for MDS files.
    Please help to clear my this doubt.
    Regards,
    Adarsh

    There is nothing specific to UNIX since the files are never picked from the file system on a production instance. You can place them under a temp directory with the proper package structure, the same way you exported personalizations for the seeded pages and the same custom package structure for your new pages and run import command. It's only how you run your import command matters, if you have placed the files in the proper package under some temp directory just give the -rootdir to point to your temp directory and no -rootPackage option.

  • Official directory structure for itunes 8 in OSX

    I have had so many different locations for my itunes libraries over the years and I would like place the on a time capsule drive now. What is the default directory structure for itunes8? Are movies, podcasts, tv shows all in the same directory?

    HD>Users>Your Account>Music>iTunes>iTunes Music - this is the default for iTunes.
    The iTunes folder contains the data base file, .xml, genius, art work etc - the iTunes Music contains all your music in folders arranged by artist then album. Note that this is true as long as you have the iTunes prefs>Advanced - the 'keep' and 'copy' options are enabled.
    MJ

  • Help me out with Directory structure for JSF+SPRING+HIBERNATE Project

    Hi frnds ,
    My name is Walter working for a startup software company . We are working on Hospital Management System (HMS) project .. MVC Architecture ...using Hibernate Spring and JSF ..we need to design Directory Structure for our project..
    plzz help me friends in suggesting MVC Directory structure ...? also plzz help me by directing me with the navigation flow?
    Thnxx in advance
    Regards
    Walter

    Thank you so much .. friends ..for your kind replies..thanks to Illu, anguquga and special thanks to BalusC for giving me the advice for hiring EE Artitech ..
    Anyways I have discussed with my teammates designing the directory structure
    anguquga your directory structure is close to what I have designed ..referiing to a sample application on web..
    Hospital Management system MVC architecture Directory structure
    This is the way the structure goes on ..
    model --> for Hibernate as well as Spring
    View --> for JSF
    src(-)
    |
    ------(-) java
         |
         -------(-) model
              |
              ------(+) businessobject
              |
              ------(-) dao
              |
              ------(+) hibernate
              |
              ------(+) exception
              |
              ------(-) service
              |
              ------ (+) impl
              |
              ------(+) util
              (-) view
              |
              ------(+) bean
              |
              ------(+) builder
              |
              ------(+) bundle
              |
              ------(+) servicelocator
              |
              ------(+) util
              |
              ------(+) validator
    (-) Web or WebRoot
    |
    ----- (-) JSP Files�etc.,
    |
    ----- (-) META-INF
    |
         ------     (+) Images
    |
         ------     (+) Scripts ==== CSS (cascading style sheets, JavaScript files etc.,)
    |
    ----- (-) WEB-INF =========xml files web.xml, faces-config.xml etc.,
         |
         -----(-) Classes
              |
    -----(-) HMS
    |
                   ----- (+) model
                   |
                   ----- (+) view
    |
    ----- (+) lib
    I am sure you may notice few errors .. if u find any plzz reply me back.... thnxx in advance for replies...and thnxx for giving your valuable replies...
    Walter (Kaleem)

  • How to use the "split development directory structure" in JBuilder9 ?

    How to use the "split development directory structure" in JBuilder9 ?
    Have /APP-INF supported ?

    I've not used JBuilder much, but if it has ant support, then it should
    be pretty straight-forward.
    -- Rob
    Rick Ni wrote:
    How to use the "split development directory structure" in JBuilder9 ?
    Have /APP-INF supported ?

  • Directory structure for a J2SE+J2EE project: suggestions are very welcome

    Hi, I have to start coding and organizing the CVS tree of an already mature project which is J2SE. This J2SE project can be described as a "core engine" for something else, and is a quite large project, and up to now has only a command line User Interface. I organized the dir structure as this:
    /build.xml
    /src/
    /src/java/<package>/...../*.java
    /src/demo/<package/...../*.java
    /src/test/<package>/....../*.java
    when I ant compile, all the .classes will be done in the "build" directory (reflecting the structure in the "src" dir):
    /build/
    /build/java/<package>/....../*.class
    /build/demo/<package/...../*.class
    /build/test/<package>/..../*.class
    I am happy with this, but now comes the issue: a web interface to use this core engine (it will have the same package namespace) is in developing progess, so I have to put somewhere the *.jsp, the WEB-INF dir with web.xml and servlet sources: how would you do this? And where would you let Ant put the compiled servlet classes?
    I can modify the previous directory structure to accomodate the J2EE part, this is really not a problem!
    Thanks to who can suggest me a clean solution
    Alessio

    Create a web-inf folder at the same level of src and
    jsp folder inside src
    i mean
    /build.xml
    /src/
    /src/java/<package>/...../*.java
    /src/demo/<package/...../*.java
    /src/test/<package>/....../*.java
    /src/jsp
    /web-infSo, would you put in /src/jsp only the *.jsp?
    And what in /WEB-INF ? What woud you put there? Would you do something like:
    /WEB-INF/web.xml
    /WEB-INF/src/<package>/..../<my_servlets_and_j2ee_stuff>.java
    /WEB-INF/classes/<package>/..../<my_servlets_and_j2ee_stuff>.java
    In this manner sources and classes are in the same tree, it does not seem very clean to me, expecially if you consider that probably I must have a "test" directory to unit test some j2ee stuff (as for the j2se stuff in "src"): how would you do that?
    Is this directory structure anyway what you meant or not?
    alessio

  • Directory structure for the new Data Services Project

    1) I do as prescribed in the manual "Building and deploying
    Flex 2 Applications", page 325
    "To create a web application make a copy of the /flex
    directory and its contents. Rename the copy and store it in the
    same location under /servers/default directory."
    ("flex" is an empty Flex Data Services application that
    serves as a template for creating your custom application)
    2) I create a corresponding project from Flex Builder 2 :
    Project type: Flex Data Services
    Root folder: C:\fds2\jrun4\servers\default\MyDS
    Root URL:
    http://localhost:8700/default/MyDS
    Project name: MyDS
    Project contents: C:\fds2\jrun4\servers\default\MyDS
    2) I build the project
    Immediately after "build project" the directory structure at
    C:\fds2\jrun4\servers\default\MyDS becomes the following:
    .settings
    bin
    ----------------META-INF
    ----------------WEB-INF
    ---------------- --------------- classes
    ---------------- ---------------flex
    --------------------------------jsp
    --------------------------------lib
    -------------------------------sessions
    html-template
    META-INF
    WEB-INF
    ----------------classes
    ----------------flex
    ----------------jsp
    ----------------lib
    ----------------sessions
    Notice that bin directory now contains another pair of
    META-INF and WEB-INF in addition to those already existing in the
    template project "flex".
    Can anybody comment on this directory structure?
    Which META-INF and WEB-INF are supposed to be used for
    configuration?
    What is the purpose of having two pairs of META-INF and
    WEB-INF in the same web app?

    Hello -
    first, those folders are necessary in deployment - You need
    only the contents of the bin folder for deployment, not the
    sources. Since you're compiling the application locally in FB2 it
    places all of the supporting and necessary files into one location
    namely the "bin" folder. You'd deploy the "bin" folder's contents
    to the FDS server, perhaps another FDS server that is not your
    "development" server -- like a production server. The data and
    configuration information that your app needs for FDS services are
    stored in the WEB-INF and META-INF folders so these need to travel
    with the final product. On the production server you'd just cop the
    "bin" folder and it's contents to the /servers/default folder -
    where you could then rename your bin folder to "MyDS"
    HTH, Bill

  • Guidelines regarding directory structure for multiple Oracle homes on Unix!

    Hi All,
    Are there any guidelines published regarding directory structures that should be defined while using multiple Oracle homes on Unix/Linux box?
    I am looking for guidelines regarding admin and oradata folders so that we dont accidentally mess up with the DB contents with a wrong Oracle home.
    Its a development server with 8i and 10g. 11g might also get loaded on the same server in future.
    Thanks in advance...
    Regards

    Thanks Maran.
    I have already checked many installation guides before posting here. All of them mention about creating folders like /admin or /oradata on various mount points but none of the naming conventions really indicate whether it is a 8i database or a 10g database.
    This is required when you are having multiple Oracle installations under /opt and databases are running from different mount points.
    Regards,

  • Directory Structure for multiple applications at one host

    Can I have multiple (more than one) WEB-INF directory structures in the public_html directory for different web applications? If I do this, how do setup the url-pattern in the Servlet Mapping tag in the web.xml file? How do I setup the URL that calls the servlet from the HTML that has been send to the user�s browser?

    If I understand your question, you want multiple contexts. All App Servers/Web Servers allow you to setup multiple contexts. Normally if your root context is in /home/myhome/app_server/
    then you would setup multiple contexts by creating a folder for each context:
    /home/myhome/app_server/context1/
    /home/myhome/app_server/context2/
    Each would have their own full application/website. And the way to reference these would be as such:
    if the domain, www.mydomain.com, is mapped to /home/myhome/app_server/
    www.mydomain.com/context1/
    www.mydomain.com/context2/
    I think that is what you were asking. Hope it helps

  • Directory structure for  ABAP+JAVA Dialog Instance

    Hello,
    Can any one clarify how will be the directory structure in a case where we have ABAP+Java System?
    For Central Instance,DVEBMGS<instance no>
    Central Services,SCS<instance no+1>
    Ex:DVEBMGS20
    SCS21
    If I have another dialog instance,can I have only ABAP or only Java in that?What will be the directory structure?But I read that they will be in 1:1 ratio
    Will it be D22(Only ABAP) or J22(Java only).
    As a dialog instance,can ABAP exist with out JAVA.
    or can JAVA exist without ABAP
    Please explain the directory structure with an example.
    Thanks,
    Sudheer.

    Sudheer,
    http://www.redbooks.ibm.com/redpapers/pdfs/redp4200.pdf page No 24 should help you...

Maybe you are looking for

  • Re-hiring and Payroll!

    Dear all! I have to face a problem involving all employees who have re-hiring date. I mean they separated before and then one day they joined again. My example is: Employee A joined on 01.02.2009. and the A separation on 25.09.2010. Then A re-hiring

  • Backing up the RAC DB when either one of the node is down

    11.2.0.2/Solaris 10 (x86-64bit) For our 2-Node production RAC DB, I had configured RMAN backup from Node1 using Cronjob. Last weekend our Node1 went down. Our SMS notifying system which sends SMS alerts to our Mobiles went down on the weekend as well

  • Installed 4.0, but now does not remember my scroll history. Searched forum, but nothing helped. Now what?

    After installing Firefox 4.0 this morning it does not remember my scroll position any longer. For example, I go to another page within a application and need to go back to the previous page where I left off to remind me of exactly where I was, but it

  • Doubt with Workset and Area Page

    Hi. I am configuring ESS for two country. For the Country A1 the company not want display the Area Page of Career and Job and for the country A2 they want display this Area of Page. I modified the FM HRXSS_GET_MENUDATA and this work fine and not disp

  • Problem to display Formular,letter and label Report

    Hi all, I use formular, letter and label reports.When i run them in paper layout, they display fine but not in web layout. I would like to know, how can i fix this problem. Thanks for ur help! TYAG