Packaging J2EE Components
By: aathishankaran Printer Friendly Format
Packaging J2EE Components
J2EE
components are packaged separately and bundled into a J2EE application for
deployment. Each component, its related files such as GIF and HTML files or
server-side utility classes, and a deployment descriptor are assembled into a
module and added to the J2EE application.
A
J2EE application is composed of one or more enterprise bean, Web, or application
client component modules. The final enterprise solution can use one J2EE
application or be made up of two or more J2EE applications, depending on design
requirements.
A
J2EE application and each of its modules has its own deployment descriptor. A
deployment descriptor is an XML document with an .xml
extension that describes a component's deployment settings. An enterprise bean
module deployment descriptor, for example, declares transaction attributes and
security authorizations for an enterprise bean. Because deployment descriptor
information is declarative, it can be changed without modifying the bean source
code. At run time, the J2EE server reads the deployment descriptor and acts upon
the component accordingly.
A
J2EE application with all of its modules is delivered in an Enterprise Archive
(EAR) file. An EAR file is a standard Java Archive (JAR) file with an .ear
extension. In the GUI version of the J2EE SDK application deployment tool, you
create an EAR file first and add JAR and Web Archive (WAR) files to the EAR. If
you use the command line packager tools, however, you create the JAR and WAR
files first and then creates the EAR.
·
Each EJB
JAR file contains a deployment descriptor, the enterprise bean files, and
related files.
·
Each
application client JAR file contains a deployment descriptor, the class files
for the application client, and related files.
·
Each WAR
file contains a deployment descriptor, the Web component files, and related
resources.
Using
modules and EAR files makes it possible to assemble a number of different J2EE
applications using some of the same components. No extra coding is needed; it is
just a matter of assembling various J2EE modules into J2EE EAR files.
Comment on this tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Subscribe to Tutorials
Related Tutorials
Program using concept of byte long short and int in java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
MultiLevel Inheritance sample in Java
Archived Comments
1. Dorothynob
View Tutorial By: Dorothynob at 2017-02-23 09:56:20