- This topic has 5 replies, 2 voices, and was last updated 19 years, 3 months ago by
Riyad Kalla.
-
AuthorPosts
-
PraveenC1MemberHi,
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.
Riyad KallaMemberPraveen,
Have a look at section 9.1 here: http://www.myeclipseide.com/images/tutorials/quickstarts/earprojects/
PraveenC1MemberYes 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]
Riyad KallaMemberPraveen,
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.
PraveenC1MemberOk. 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.
Riyad KallaMemberOk. 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.
-
AuthorPosts