0% found this document useful (0 votes)
84 views17 pages

By: Nitesh Srivastava 28445

The document discusses Java 2 Enterprise Edition (J2EE), which was launched by Sun Microsystems to address shortcomings in the standard Java edition. It describes several key J2EE features and technologies, including JavaMail for email services, Java Transaction API for transaction management, Java Database Connectivity (JDBC) for database access, Java Server Pages for dynamic web pages, and Enterprise JavaBeans (EJB) for reusable business components. It also discusses the typical 3-tier architecture used in enterprise applications with presentation, business, and data tiers.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
84 views17 pages

By: Nitesh Srivastava 28445

The document discusses Java 2 Enterprise Edition (J2EE), which was launched by Sun Microsystems to address shortcomings in the standard Java edition. It describes several key J2EE features and technologies, including JavaMail for email services, Java Transaction API for transaction management, Java Database Connectivity (JDBC) for database access, Java Server Pages for dynamic web pages, and Enterprise JavaBeans (EJB) for reusable business components. It also discusses the typical 3-tier architecture used in enterprise applications with presentation, business, and data tiers.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 17

By:

Nitesh Srivastava
28445
Enterprise Edition of JAVA: Facing many shortcomings in the
standard edition of JAVA, SUN Microsystems had launched the new version
of JAVA that is known as J2EE (JAVA 2 Enterprise Edition). It has so many
new features over the standard edition. They are:

•JAVA Mails: This feature provides the facilities of E-Mails and the
massaging. It is platform and protocol independent so present an
ideal way to build e-mail and massaging services.

•JAVA Transaction services: JTS is an implementation of the Transaction


Manager (TM) that supports the JAVA Transaction API specifications.
It plays a role of the transaction coordinator for all the components of EJB
architecture.
•JAVA Transaction API: JTAPI defines standard JAVA interfaces between
a transaction manger and the other parties that are involved in using the
transaction systems.

•JDBC: JAVA Database Connectivity an API that provides classes we


can use to connect to a wide number of databases. We can access all the
databases using the JAVA programming and the SQL.

JAVA Server Pages: It is a simple but a powerful technology from


SUN for maintaining and creating the dynamic-content web pages.
This new server side scripting language is purely based on JAVA
language.
•JAVA Servlets: It is a program that runs on the request of the client for
some specific information. This works as “APPLETS on SERVER SIDE”.

J2EE Connector: There are many tools that are designed to connect
the front end and back end parts of the program but still they are not
able to provide the integrity with the Enterprise Resource Planning
(ERP) and Enterprise Information Systems.J2EE Connectors are used
to take this facility.

JNDI: JAVA Naming and Directory Interface (JNDI) is an API that


provides access to different naming and directory services. We can
use this JNDI to access the files, devices, objects and much other
type of data residing in different directories.
EJB is the technology that is a specification frame work that supports the
development and deployment of the JAVA applications. An EJB represents
a business object or services such as purchase requisition, in JAVA
application. We code the business logic for once and then use it iteratively.
An EJB can be developed once and then deployed on multiple platforms
without any recompilation and modifications.

3-Tier Architecture:
Every Enterprise application is logically divided into three tiers. They are
known as:
• Presentation Logic
• Business Logic
• Data Base and Enterprise Application
Presentation Business Data
Logic Logic Source

3-Tier Architecture

INTERNET/
INTRANET

client

BEANS DATABASE

server
A JAVA Bean is a soft ware component that has been designed to be reused
In different environments. It may perform a simple job like spelling checking and
can perform big tasks such as forecasting the things.

Application Builder Tools: When working with JAVA Beans, most of us


use an application builder tools, a utility that enables us to configure a set of
Beans, connect them together, and produce a working application. Its major
capabilities are:
• Palette---List of all available Beans .We can add more….
• Worksheet--- to lay out Beans in GUI.
• Special Editors and Customizers --- allow a Bean to be configured.
• Commands --- allow us to inquire about the state and behavior of the Bean
• Capabilities --- exists to interconnect the Beans.
The Bean Developer Kit (BDK), available from the JAVA Soft site, s a simple
example of a tool that enables us to create, configure, and connect Beans.

Installing BDK: Freeware on http://java.sun.com

Starting BDK: Go to BDK/Bean box


run the batch file run. bat
Before developing our own Bean we must know about the
JAR files because a bean always expects to be packaged
within JAR files.

We must provide a manifest file to indicate which of the components in the


JAR file are JAVA Beans.

Name: sunw/demo/slides/slide0.gif
Name: sunw/demo/slides/slide1.gif
Name: sunw/demo/slides/slide2.class
Java-Bean: True
c A new Archive is to be created

C Change Directory during command execution

f The first element in the file list is the name of archive that is
to be created
i Index info.

m The second element is ext manifest file

M Manifest file not created

t Archive elements should be tabulated

u Update existing JAR file

v Verbose output should be given when executed

x Files are to be extracted from archive

0 Do not use compression


jar cf XY.jar *.class *.gif --- creates a file named XY having .class and
.gif files.

jar tf XY.jar --- tabulates the contents of jar file

jar xf XY.jar --- extracts files from JAR files.

jar uf XY.jar file1.class --- updates (adds) the file 1.class to XY.jar
Introspection is the process of analyzing a Bean to
determine its capabilities. This is an essential feature
of Java Beans API, because it allows an application
builder to present information about a component to a
software designer. Without introspection, the Java
Beans technology could not operate.
There are two ways for this introspection
can take place. In the first method, simple naming
conventions are used. In second method a explicit file
is used to give the information.
A Bean that has constrained properties generates
an event when an attempt is made to change its
value. The event is of type PropertyChange Event.

Persistence is the property to save the newly


made Bean to a non volatile storage and retrieve
it whenever it is required.
• create a directory for the new bean.
• create a java source file.
• compile the source file.
• create the manifest file.
• generate the JAR file.
• start the BDK.
• Test.
•http://developer.java.sun.com/developer/technicalArticles/EBeans/SampleApp/ind
ex.html

•http://developer.java.sun.com/developer/technicalArticles/EBeans/

•http://www.javaworld.com/javaworld/jw-10-1998/jw-10-beans.html

•http://www.javaworld.com

•JAVA 2 Programming---- by KEYUR SHAH

•JAVA Complete Reference—Herbert Schildt

You might also like