facebook

Including a Java Project in a Enterprise Project

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

    Clay
    Member

    Is it possible to include a standard Java project when building a enterprise application? We’ve got a project with the standard webapps and ejbs, but we’ve also got a seperate codebase that needs to be jar’d up and included with our EAR. Is it possible to do this?

    #211398 Reply

    Scott Anderson
    Participant

    Clay,

    If the standard project is a library module used by *both* the EJB and web projects then the short answer is “no, this is currently an enhancement request”. However, if you jar the project via Ant and place the jar within the EAR project, it will be automatically deployed appropriately, but you’ll still need to manually add entries into the MANIFEST.MF Class-Path so that it will be found by all the EJB and web jars that need it.

    #211400 Reply

    Clay
    Member

    Any idea when that enhancement request might be filled?

    #225202 Reply

    pixel
    Member

    Has there been, or is there likely to be, any progress on this? We could really do with this feature

    #225221 Reply

    @support-scott wrote:

    if you jar the project via Ant and place the jar within the EAR project, it will be automatically deployed appropriately, but you’ll still need to manually add entries into the MANIFEST.MF Class-Path so that it will be found by all the EJB and web jars that need it.

    I have a project that uses some JARs of common-code that is used by both the EJBs and the WebApp.

    What I’ve done; because we need to have an Ant Script to Build the project; is to put the Common-Jars on the library directory of the EAR; which is: APP-INF/lib/ and pack them together within the EAR.

    The EAR classloader will look there if it doesn’t find the required class in the corresponding context (the web-app or the ejb).

    It is not required to put the PATH on the Classpath; because we are putting the jar libraries within the EAR.

    Just my two cents.

    Saludos

    Alex

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Including a Java Project in a Enterprise Project

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