Beruflich Dokumente
Kultur Dokumente
Database
EIS tier Server
Web Container
Browser
Java Servlet/JSF
Application
Client EJB EJB
Business services container
Application APIs
Client
Container JNDI JTA JMS Database
JavaMail
Business-tier components:
• Are EJBs
• Handle business logic
• Receive data from client programs
• Retrieve data from database storage
• Process the data and communicate with the
database and the client program
• Can be invoked by the Web-tier components
Enterprise JavaBeans:
• Are server-side components written in Java
• Contain the business logic of an enterprise
application
• Are hosted in EJB containers
• Are based on Remote Method Invocation (RMI)
communication
• Are platform independent
• Provide remote services for clients
• Can be exposed as Web services
• Use JDBC to connect to a database
• Entity Bean
– Used to model the persistence part of an
application
• Session Bean
– Invoked by a client to perform a specific business
operation
• Message-driven Bean
– Triggered by messages sent to a messaging server,
which enables sending asynchronous
messages between system components
• A Web browser:
– Is used for a Web-based Java EE application
– Downloads static or dynamic Web pages from
Web-tier components
– Is a thin client
• An application client:
– Is used for a non-browser-based Java EE
application
– Executes on the client machine
– Can contain a graphical or command-line interface
– Is a thick client
– Accesses middle-tier services
– Requires installation on the client machine
Browser Servlet
Response
Web EJB
META-INF
Module Module
Application Resource
Client Module Adapter Module
1. webtier.war
Java servlets, JSP files, HTML, GIF files, and
a Web application deployment descriptor
2. JavaEEappClient.jar
Java EE application client (Java class), and
an application client deployment descriptor
Java EE application.ear
3. Resource adapter (.rar)
Java interfaces, classes, native libraries,
and other documentation and the resource
adapter deployment descriptor
4. ejb.jar
Class files for enterprise beans and an
EJB deployment descriptor
JTA
Client
JAAS
EJB JCA
ORMI
container JavaMail
ORMI
JAF
A deployment descriptor:
• Is an XML document with an .xml extension
• Is used by application developers to communicate
how security is to be set up for the deployed
application
• Enables an application’s security structure,
including roles, access control and authentication
requirements to be expressed in a form external to
the application
• Is read at run time by the Java EE server which
then acts upon the application, module, or
component accordingly
JDeveloper provides:
• Integrated development, deployment, and testing
support for Web-tier and business-tier
components
• A Java EE framework for rapid development
– Application Development Framework (ADF)
business components
– Data tags
• Integration with Struts
• UML modeling
• Visual editors for Web clients JDeveloper
• Easy deployment to Oracle Application Server 10g
1-36 Copyright © 2007, Oracle. All rights reserved.
Oracle JDeveloper 10g Environment
Wizards for
JSPs,
servlets, and
EJBs
Error
checking
for HTML
and JSPs
EAR, WAR
deployment
to Java EE
server
Code Insight
Modify
values
in
Design in visual
Property
or code views,
see revisions Inspector