facebook

Enterprise Application Source Layout

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #205258 Reply

    Erez
    Member

    Hi,

    I have an enterprise application composed of EJB and a Web module.
    Some of the packages are shared utilities and are used by the two modules.

    I am working with JBoss 3.2.3 and for developement I use the exploded deployment way of working.

    Originally my application was developed under JBuilder where the entire source tree was structured under a single src directory. When I ported to MyEclipse, I used the linked-resource folder to point my ‘src’ to my real ‘src’ directory and in each project (EJB or Web module) I used the filter to exclude the unnecessary. Now, the linked resources are not such a happy feature since they are not relative but absolute, a clear disadvantage making the project fixed on an absolute path in the file system.

    My question is what is the best or alternative way to structure my sources under Eclipse/MyEclipse? Or better say, what is recommended?

    Thanks in advance,

    Erez

    #205298

    support-michael
    Keymaster

    We typically setup our EAR projects such that common code shared between an EJB and Web project is packaged in the EJB project. Scan down the thread in the following link and see my last comment.

    https://www.genuitec.com/forums/topic/sharing-classes-between-ejb-jar-amp-web-war/&highlight=ear+classpath

    #205303

    Erez
    Member
    #205365

    support-michael
    Keymaster

    I tried the link after I posted it as well as the version you posted with no problems.

    Here is a fragment of that thread that I was referring:

    So I set up my EJB projects to hold all DO/VO objects transfered from the biz service tier to the web tier. This assumes that the web module and ejb modules will be deployed as part of the same EAR. The MyEclipse EAR project creation mechanism sets up a classpath dependencies from Web Modules to EJB Modules analogous to the manner in which J2EE hierarchical classloader behaviors. This is one reason that MyEclipse does not support nested modules within an EAR project like some other OSS Eclipse products have tried. The advantage of the MyEclipse model is that you are able to discover at design time if you have partitioned your modules correctly. Otherwise you’re stuck diagnosing more costly runtime classnotfound exceptions

    .

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Enterprise Application Source Layout

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