facebook

[Closed] Hot sync for common java project in EAR

💡
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 Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #259852 Reply

    HenryLai
    Member

    I have the following
    project a – ear project
    project b – ejb project
    project c – web project
    project d – java project

    b and c are added as modules of project a
    project d is a referenece project of project a ( the ear )
    project b and project c depends on the project d

    the exploded deployment works fine, except that the hot sync is working for files in project b and c, but not working for files in project d.
    It appears that project b ( the ejb) and project c ( web ) are exploded, but the project d ( java ) are stored in a jar file.
    Is there a way to have hot sync work on a java project as well.

    Henry

    #259895

    Riyad Kalla
    Member

    Henry,
    Unfortunately there isn’t a way to support this at the current time. If you check the EAR settings, you’ll see the two deployment rules for dependent Java projects, either JAR it or ignore it. Unfortunate if we don’t JAR is, EAR’s have no construct for exploded classes to exist (like a /classes dir) that I’m aware of, so we can only offer to JAR the project or ignore it completely, which rules out hot-syncing changes on the fly.

    #259960

    HenryLai
    Member

    In websphere and weblogic environments, if the d.jar file was expanded and replaced by the directory d.jar, the application works properly, and the hot sync can work as well.
    It would be great if myeclipse can support this, cause in large enterpise projects, share code are often put into separate java project, and referenced by the web and ejb modules.

    Henry

    #259973

    Riyad Kalla
    Member

    Henry,
    Do you mean in the root of the EAR, creating a d.jar directory that at it’s root is the base of the output dir for the Java project instead of having a JAR file, and that wlil work?

    #259976

    HenryLai
    Member

    Yes, I have it working for websphere and weblogic

    Henry

    #259978

    Riyad Kalla
    Member

    … does this work for JBoss or Resin by chance? If it works for all (most?) of the enterprise JEE servers, I don’t see why we can’t add this as a feature.

    #259979

    HenryLai
    Member

    Dont know about other app servers, works on weblogic 8.1 and websphere 6.1
    It would be great to get support for this!

    Henry

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: [Closed] Hot sync for common java project in EAR

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