SlideShare a Scribd company logo
Presented By
S.Vijayalakshmi B.E,
Assistant Professor,
Department of Computer Science,
Sri Sarada Niketan College for Women,
Karur.
EJB CLIENTS
An EJB client is any kind of
application that accesses and invokes
business logic of EJB components
deployed inside the EJB engine.
EJB clients thus include Servlets,
applets, other EJBs, standalone Java
programs, etc.
WHAT ARE EJB CLIENTS?
EJB is a server-side software
component that encapsulates business
logic of an application.
An EJB web container provides a
runtime environment for web related
software components,
including computer security, Java
servlet lifecycle management,
transaction processing, and other web
services.
WHAT ARE THE APPLICATIONS OF EJB?
Application needs Remote Access. In
other words, it is distributed.
Application needs to be scalable. EJB
applications supports load balancing,
clustering and fail-over.
Application needs encapsulated
business logic. EJB application is
differentiated from demonstration and
persistent layer.
WHEN TO USE ENTERPRISE JAVA
BEANS?
The EJB object implementation itself
must implement all the remote methods
defined in its remote interface, provide
methods that correspond to the methods
on its home interface for creating and/or
finding the bean, and also implement the
methods used by the EJB container to
manage the bean.
EJB IMPLEMENTATION
 These sections discuss design options for
WebLogic Server Enterprise Java Beans (EJBs),
bean behaviors to consider during the design
process, and recommended design patterns.
 Choosing the Right Bean Type
 Persistence Management Alternatives
 Transaction Design and Management Options
 Satisfying Application Requirements with
WebLogic Server EJBs.
DESIGNING ENTERPRISE JAVA BEANS
 When you choose the bean type for a processing
task, consider the different natures and capabilities
of the various bean types.
 Bean types vary in terms of the bean’s relationship
with its client. Some bean types stick with a client
throughout a series of processes, serving as a sort of
general contractor—acquiring and orchestrating
services for the client.
 There are other bean types that act like
subcontractors, they deliver the same single function
to multiple client-oriented general contractor beans.
 Beans that deliver commodity services to multiple
client-oriented beans do not maintain state.
CHOOSING THE RIGHT BEAN TYPE
Persistence management strategy
determines how an entity bean’s database
access is performed.
Configure the persistence management
strategy either container-managed or
bean-managed for an entity bean in
the persistence-type element in ejb-
jar.xml.
PERSISTENCE MANAGEMENT
ALTERNATIVES
A transaction is a unit of work that
changes application state—whether on
disk, in memory or in a database—that,
once started, is completed entirely, or not
at all.
Transactions are costly application
resources, especially database
transactions, because they reserve a
network connection for the duration of the
transaction.
TRANSACTION DESIGN AND
MANAGEMENT OPTIONS
 Transaction Isolation: A transaction’s isolation level is the
degree to which it exposes updated but uncommitted data to
other transactions.
 Allowing access to uncommitted data can improve
performance, but increases the risk of incorrect data being
supplied to other transactions.
 Set the isolation level for bean-managed transactions in the
bean’s Java code. For instructions, see
Programming Bean-Managed Transactions .
 Set the isolation level for container-managed transactions in
the isolation-level sub-element of the transaction-isolation
element of weblogic-ejb-jar.xml.
 Web Logic Server passes this value to the underlying
database. The behavior of the transaction depends both on
the EJB’s isolation level setting and the concurrency control
of the underlying persistent store.
A PERFORMANCE VS. DATA
CONSISTENCY CHOICE
Satisfying Application Requirements with
WebLogic Server EJBs.
WebLogic Server offers a variety of value-
added features for enterprise beans that
you can configure to meet the
requirements of your application.
SATISFYING APPLICATION
REQUIREMENTS
EJB repository yields system-level services to
enterprise beans, the bean developer can focus
on solving business problems.
Rather than the bean developer, the EJB
repository is responsible for system-level
services such as transaction management and
security authorization.
Enterprise Java Beans are portable elements,
the application assembler can build new
applications from the beans that already
exists.
ADVANTAGES OF EJB
Requires application server.
Requires only java client. For other
language client, you need to go for
web service.
Complex to understand and develop
EJB applications.
DISADVANTAGES OF EJB
THANK YOU

More Related Content

PPT
Unite5-EJB-2019.ppt
PDF
EJB 3.0 - Yet Another Introduction
PPT
ADVANCED JAVA MODULE I & II.ppt
PDF
Enterprise Java Beans - EJB
PDF
Ejb intro
PDF
Ejb 2 0 Development with Websphere Studio Application Developer 1st ed Editio...
PDF
2014 Pre-MSc-IS-4 Business Logic Layer
PPTX
Unite5-EJB-2019.ppt
EJB 3.0 - Yet Another Introduction
ADVANCED JAVA MODULE I & II.ppt
Enterprise Java Beans - EJB
Ejb intro
Ejb 2 0 Development with Websphere Studio Application Developer 1st ed Editio...
2014 Pre-MSc-IS-4 Business Logic Layer

Similar to Advanced Java Programming - Enterprise Java Beans client (20)

PPTX
The Latest in Enterprise JavaBeans Technology
PDF
Ejb intro
PPT
Virtual classroom
PDF
Ejb 3 Developer Guide A Practical Guide For Developers And Architects To The ...
PDF
Free EJB Tutorial | VirtualNuggets
PPT
EJBDetailsFeb25.ppt
PDF
Ejb notes
PPT
PPT
Enterprise java beans(ejb)
PPT
Aravind vinnakota ejb_architecture
PPT
Enterprise Java Beans( E)
PPT
Ejb training institute in navi-mumbai
PPT
Enterprise java beans(ejb) update 2
PPT
Enterprise java beans(ejb) Update 2
PDF
Ejb Cookbook 1st Edition Ben G Sullins Mark B Whipple
PPT
J2EEFeb11.ppt
PPT
J2EEFeb11 (1).ppt
PPT
Enterprise java beans(ejb)
PPT
Enterprise java beans(ejb) update 2
PPTX
Ejb and jsp
The Latest in Enterprise JavaBeans Technology
Ejb intro
Virtual classroom
Ejb 3 Developer Guide A Practical Guide For Developers And Architects To The ...
Free EJB Tutorial | VirtualNuggets
EJBDetailsFeb25.ppt
Ejb notes
Enterprise java beans(ejb)
Aravind vinnakota ejb_architecture
Enterprise Java Beans( E)
Ejb training institute in navi-mumbai
Enterprise java beans(ejb) update 2
Enterprise java beans(ejb) Update 2
Ejb Cookbook 1st Edition Ben G Sullins Mark B Whipple
J2EEFeb11.ppt
J2EEFeb11 (1).ppt
Enterprise java beans(ejb)
Enterprise java beans(ejb) update 2
Ejb and jsp
Ad

More from vijayalakshmis184431 (13)

PPTX
Advanced Operating Systems- Mobile OS and ARM
PPTX
Advanced Operating Systems- Process Synchronization
PPTX
Advanced Operating Systems- Synchronization primitives in os
PPTX
Advanced Operating Systems- Kernal Structure and native level
PPTX
Advanced Operating Systems- Distributed Scheduling and shared memory
PPTX
Advanced Operating Systems- Distributed file system and caching
PPTX
Advanced Operating Systems- Distributed OS
PPTX
Advanced Operating Systems- Clock synchronization and mutual exclusive
PPTX
Advanced Operating Systems- Multiprocessor OS
PPTX
Advanced java programming - DATA TYPES, VARIABLES, ARRAYS
PPTX
Computer Networks - Error Detection and Correction
PPTX
Computer Networks - OSI Model and its functions
PPTX
Computer Networks - Network Topologies, Application of Networks, Different ty...
Advanced Operating Systems- Mobile OS and ARM
Advanced Operating Systems- Process Synchronization
Advanced Operating Systems- Synchronization primitives in os
Advanced Operating Systems- Kernal Structure and native level
Advanced Operating Systems- Distributed Scheduling and shared memory
Advanced Operating Systems- Distributed file system and caching
Advanced Operating Systems- Distributed OS
Advanced Operating Systems- Clock synchronization and mutual exclusive
Advanced Operating Systems- Multiprocessor OS
Advanced java programming - DATA TYPES, VARIABLES, ARRAYS
Computer Networks - Error Detection and Correction
Computer Networks - OSI Model and its functions
Computer Networks - Network Topologies, Application of Networks, Different ty...
Ad

Recently uploaded (20)

PPTX
Presentation on HIE in infants and its manifestations
PPTX
Cell Structure & Organelles in detailed.
PPTX
Pharma ospi slides which help in ospi learning
PDF
01-Introduction-to-Information-Management.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
GDM (1) (1).pptx small presentation for students
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
RMMM.pdf make it easy to upload and study
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
Lesson notes of climatology university.
PDF
O7-L3 Supply Chain Operations - ICLT Program
Presentation on HIE in infants and its manifestations
Cell Structure & Organelles in detailed.
Pharma ospi slides which help in ospi learning
01-Introduction-to-Information-Management.pdf
Microbial disease of the cardiovascular and lymphatic systems
GDM (1) (1).pptx small presentation for students
FourierSeries-QuestionsWithAnswers(Part-A).pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
202450812 BayCHI UCSC-SV 20250812 v17.pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Anesthesia in Laparoscopic Surgery in India
Final Presentation General Medicine 03-08-2024.pptx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
RMMM.pdf make it easy to upload and study
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
A systematic review of self-coping strategies used by university students to ...
Lesson notes of climatology university.
O7-L3 Supply Chain Operations - ICLT Program

Advanced Java Programming - Enterprise Java Beans client

  • 1. Presented By S.Vijayalakshmi B.E, Assistant Professor, Department of Computer Science, Sri Sarada Niketan College for Women, Karur. EJB CLIENTS
  • 2. An EJB client is any kind of application that accesses and invokes business logic of EJB components deployed inside the EJB engine. EJB clients thus include Servlets, applets, other EJBs, standalone Java programs, etc. WHAT ARE EJB CLIENTS?
  • 3. EJB is a server-side software component that encapsulates business logic of an application. An EJB web container provides a runtime environment for web related software components, including computer security, Java servlet lifecycle management, transaction processing, and other web services. WHAT ARE THE APPLICATIONS OF EJB?
  • 4. Application needs Remote Access. In other words, it is distributed. Application needs to be scalable. EJB applications supports load balancing, clustering and fail-over. Application needs encapsulated business logic. EJB application is differentiated from demonstration and persistent layer. WHEN TO USE ENTERPRISE JAVA BEANS?
  • 5. The EJB object implementation itself must implement all the remote methods defined in its remote interface, provide methods that correspond to the methods on its home interface for creating and/or finding the bean, and also implement the methods used by the EJB container to manage the bean. EJB IMPLEMENTATION
  • 6.  These sections discuss design options for WebLogic Server Enterprise Java Beans (EJBs), bean behaviors to consider during the design process, and recommended design patterns.  Choosing the Right Bean Type  Persistence Management Alternatives  Transaction Design and Management Options  Satisfying Application Requirements with WebLogic Server EJBs. DESIGNING ENTERPRISE JAVA BEANS
  • 7.  When you choose the bean type for a processing task, consider the different natures and capabilities of the various bean types.  Bean types vary in terms of the bean’s relationship with its client. Some bean types stick with a client throughout a series of processes, serving as a sort of general contractor—acquiring and orchestrating services for the client.  There are other bean types that act like subcontractors, they deliver the same single function to multiple client-oriented general contractor beans.  Beans that deliver commodity services to multiple client-oriented beans do not maintain state. CHOOSING THE RIGHT BEAN TYPE
  • 8. Persistence management strategy determines how an entity bean’s database access is performed. Configure the persistence management strategy either container-managed or bean-managed for an entity bean in the persistence-type element in ejb- jar.xml. PERSISTENCE MANAGEMENT ALTERNATIVES
  • 9. A transaction is a unit of work that changes application state—whether on disk, in memory or in a database—that, once started, is completed entirely, or not at all. Transactions are costly application resources, especially database transactions, because they reserve a network connection for the duration of the transaction. TRANSACTION DESIGN AND MANAGEMENT OPTIONS
  • 10.  Transaction Isolation: A transaction’s isolation level is the degree to which it exposes updated but uncommitted data to other transactions.  Allowing access to uncommitted data can improve performance, but increases the risk of incorrect data being supplied to other transactions.  Set the isolation level for bean-managed transactions in the bean’s Java code. For instructions, see Programming Bean-Managed Transactions .  Set the isolation level for container-managed transactions in the isolation-level sub-element of the transaction-isolation element of weblogic-ejb-jar.xml.  Web Logic Server passes this value to the underlying database. The behavior of the transaction depends both on the EJB’s isolation level setting and the concurrency control of the underlying persistent store. A PERFORMANCE VS. DATA CONSISTENCY CHOICE
  • 11. Satisfying Application Requirements with WebLogic Server EJBs. WebLogic Server offers a variety of value- added features for enterprise beans that you can configure to meet the requirements of your application. SATISFYING APPLICATION REQUIREMENTS
  • 12. EJB repository yields system-level services to enterprise beans, the bean developer can focus on solving business problems. Rather than the bean developer, the EJB repository is responsible for system-level services such as transaction management and security authorization. Enterprise Java Beans are portable elements, the application assembler can build new applications from the beans that already exists. ADVANTAGES OF EJB
  • 13. Requires application server. Requires only java client. For other language client, you need to go for web service. Complex to understand and develop EJB applications. DISADVANTAGES OF EJB