- This topic has 3 replies, 3 voices, and was last updated 20 years, 1 month ago by Scott Anderson.
-
AuthorPosts
-
ptl-devMemberHi all,
I was wondering if anyone could help me. I am using MyEclipseIDE 3.8.3. I currently have an EJB project, myRAR, which is setup to use a custom deployment such that it creates a .rar ( myRAR.rar ) file. This is all working well. The question I have is whether I am doing this correctly. I specifically want to know if there is a way to take advantage of the EJB automated deployment without receiving the error: Missing ejb-jar.xml deployment descriptor in META-INF folder. If not for that warning, then I would be happy with the current config. Any ideas?
Thanks in advance,
-MLA
Riyad KallaMemberMLA,
The ejb-jar.xml file is required so the project will complain about it… is there a reason you don’t have one?
ptl-devMemberThanks for the response. Perhaps that is a more relevant question, but to my knowledge a Resource Adapter does not require an ejb-jar.xml. Is there an ’empty’ ejb-jar.xml configuration I could use as a placeholder? Did I miss something in the RAR spec which relates to the use of an ejb-jar.xml?
Perhaps a related question would be:
If I want to create a project which simply produces a jar of Java classes ( without any EJBs ), but which also utilizes the automated deployment features of the EJB project, what would I do to avoid the ejb-jar.xml warning?Thanks again,
-MLA
Scott AndersonParticipantMLA,
If you’re creating a RAR, the easiest way to do that is create a plain java project and name it something like “name.rar”. Then, set up your Enterprise project so that it has a project dependency on the RAR project and set the deployment options to include dependent projects. Information on how to do that is in the advanced section of the Enterprise Application Development Quickstart in the documentation section here:
http://www.myeclipseide.com/ContentExpress-display-ceid-67.html or in the included help in version 3.8.3.Once you’ve set up the project dependency like this, the rar will be packaged and included in the root of your EAR.
-
AuthorPosts