facebook

Deploying third party EJB jar file as part of my ear.

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

    PraveenC1
    Member

    Hi,

    I have a third party EJB jar file that contains a bunch of EJBs that I would like deploy along with my ear. I was wondering what my options are when it comes to configuring/setting up MyEclipse projects.

    I tried to add this EJB jar as an User Library for the web project with no luck. Any thoughts or ideas?

    Thanks,
    Praveen.

    #247335 Reply

    Riyad Kalla
    Member
    #247440 Reply

    PraveenC1
    Member

    Yes I already looked at that section. The problem I have is, I do not have to “create” a jar file. Someone else gives me an EJB jar file, I just have to “use” it.

    The documentation asks me to create a Java project that exports a jar file which will be deployed. I guess my questions are:

    – How can I export my jar file through the dummy java project. It feels odd for me to have to create a Java project just to use an EJB jar file. In any case, let’s say I create a Java project, are you expecting me to unzip the jar into the classes directory or something so that it can be rejarred and exported? For something that is so simple as using an EJB jar, why would I have to go through so many steps? I feel I am missing something or am not interpreting the documentation correctly.

    – Assuming that I can somehow export the EJB jar from the Java project, how can I ask my ear file to deploy it? Is it automatic (if I check the right checkboxes in the Library Deployment policies)?

    Thanks in advance for your help.

    -Praveen.[/list][/list]

    #247442 Reply

    Riyad Kalla
    Member

    Praveen,
    Sorry about the misunderstanding, to deploy your 3rd party JAR with your EAR, just drop it in the root of the EAR project, it will get deployed with the rest of the app. You don’t need to setup a dependent project or anything like that.

    #247452 Reply

    PraveenC1
    Member

    Ok. That worked! It copied the EJB jar file to the root of the ear deployment location.

    But it doesn’t seem to deploy the EJBs, probably because the application.xml is not updated to add this new module. Also, the EJB jar doesn’t appear under the ear project in Package Explorer.

    Please note that I already have the “Automatically update the application.xml as needed” option selected.

    -Praveen.

    #247453 Reply

    Riyad Kalla
    Member

    Ok. That worked! It copied the EJB jar file to the root of the ear deployment location.

    Sorry, what I meant is for you to copy the EJB JAR to the root of your EAR project, not the deployment location.

    Please note that I already have the “Automatically update the application.xml as needed” option selected.

    This only pertains to modules managed by MyEclipse, you will need to update this manually for this 3rd party JAR.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Deploying third party EJB jar file as part of my ear.

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