facebook

Question as how to create projects and sub-projects

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #225664 Reply

    asafbu
    Member

    Hello,

    I’m trying to figure out as how to best map our projects/sub-projects to
    Eclipse/MyEclipse projects.

    Our code layout is something like this:

    A
    B
    C
    D

    Now A is the top level project and this is where main ant build script reside.
    B is a web project (sub-project) and it has JSPs/Htmls, Action classes plus other java code and also has its own ant script. This folder is archived as a WAR file.

    C is a sub-project which has a lot of java code and some EJBs. The source code under this is distributed as one JAR file.

    D is just a java code and distributed as JAR file.

    So, at the end our EAR (A.ear) has B.war, C.jar and D.jar.

    Can I create B as web-project, C as EJB project, D as Java project and finally A as application project????

    Now, in this case EJB project (C.jar) will have multiple EJBs and some java code like DAOs etc.

    Is there a better way to tackle this situation?

    I’d really appretiate if you could share your experiences with this case.

    Thanks!

    #225690 Reply

    Riyad Kalla
    Member

    Can I create B as web-project, C as EJB project, D as Java project and finally A as application project????

    Now, in this case EJB project (C.jar) will have multiple EJBs and some java code like DAOs etc.

    You are exactly right, this is how we would suggest you to do it. Partition each of the previous projects into their own projects in MYEclipse, make sure they all build, then create the main ‘umbrella’ Enterprise Project that makes them all modules, and deploy that as an EAR.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Question as how to create projects and sub-projects

You must be logged in to post in the forum log in