Chapter 8. The J2EE Application

This project is intended to be a complete J2EE application. We are going to create some additional files to have all the materials needed to build it.

Procedure 8.1. Creating the application.xml

  1. Right click on the src/META-INF folder, and choose New > Other....
  2. Choose JBoss-IDE > Descriptors > EAR 1.3 Deployment Descriptor, and click Next.
Make sure application.xml is the name of the file, and click Finish
Your META-INF directory should now look like this:

Now double click on the application.xml to open it, and make sure the content looks like this (most of the content is already there for you):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC
	"-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
	"http://java.sun.com/dtd/application_1_3.dtd">
<application>
	<display-name>Sum Application</display-name>
	<module>
		<ejb>FiboEJB.jar</ejb>
	</module>
	<module>
		<web>
			<web-uri>FiboWeb.war</web-uri>
			<context-root>/fibo</context-root>
		</web>
	</module>
</application>