facebook

Add 3rd party jars to application.xml? [Workaround/Enhance.]

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

    rabba42
    Member

    Hello,

    I posted on this issue earlier but didn’t get any valuable reply, thanks anyway;) I still have the problem that I don’t know how to add 3th party jars to the application.xml of the EAR (Enterprise) project? I would like to tell enterprise-workbench which jars I want in my ear and it pack’s them into the ear file as well as adding the jar name to the application.xml file. Is that possible with enterprise workbench? Did I miss something?

    Any help will be appreciated. Thank you

    Peter

    #202882 Reply

    support-michael
    Keymaster

    Tools for explicitly managing dependent jars and dependent POJ projects are scheduled for introduction in the MyEclipse 2.8 release. Until then you need to explicitly add dependent jars to an enterprise project and reference them from your module projects. Presently 2.7 updates the application.xml file when a user adds/removes a module project (e.g., web-project or ejb-project) from an enterprise project.

    Example:
    0) myEJBProject depends upon myjar.jar and will be be deployed as part of myEARProject
    1) copy myjar.jar into myEARProject
    2) add myjar.jar as a ClassPath entry of myEJBProject’s MANIFEST.MF
    At this point you have a deployable runtime solution but not an ME compilable solution
    3) add myjar.jar to the build-path of myEJBProject
    This should compile under MyEclipse

    For 2.8 you will be able to specify the jars and POJ (plain old java) projects that an EJB project will dependent and MyEclipse will take care of steps #2 & #3 for you.

    I hope this helps.

    #202885 Reply

    rabba42
    Member

    Michael thank you for your quick reply, it really helped me. I am looking forward to the new version 😉

    Peter

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Add 3rd party jars to application.xml? [Workaround/Enhance.]

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