How to package an EAR application?

I'm using Idea 8M1 and jboss AS 4.2.2.GA. The attached image is about the Project Settings on my machine.

I have 2 EJB modules (business and logging) and a Web module (view). The utility module is a library module which is used by the business, logging and view modules.

I create another module called ifx with the javaEEApplication facet so that I can package all the modules (I'm not sure if this is a right step). Then the application.xml file created by Idea looks like this:

MyApp business.jar logging.jar view.war ifx ]]>

which is exactly what I want.

How do I tell Idea to make a jar for the utility module and and put it in the lib directory when it deploys the ifx module to jboss? The structure of the ifx module when it is deployed on jboss should look like this:

META-INF/application.xml
business.jar
logging.jar
view.war
lib/utility.jar



Attachment(s):
idea.png
2 comments
Comment actions Permalink

Hi, please see attached image, in short:

- go to EJB facet, and on the right side you can choose libraries/modules to be deployed
- in your EAR facet, on the bottom of the page you can check a checkbox which says something like "show content of included facets" so you can see what is beeing deployed
hth,
-m



Attachment(s):
ejb.png
0
Comment actions Permalink

It works and thank so much (although the utility.jar is not in the lib directory, but it can be accessed by the EJB and Web)

Edited by: Thai Dang Vu on Aug 17, 2008 9:01 PM

0

Please sign in to leave a comment.