enterprise javabeans n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Enterprise JavaBeans PowerPoint Presentation
Download Presentation
Enterprise JavaBeans

Loading in 2 Seconds...

play fullscreen
1 / 13

Enterprise JavaBeans - PowerPoint PPT Presentation


  • 218 Views
  • Uploaded on

Enterprise JavaBeans. By Yung-Chien Chen. Topics. What is Enterprise JavaBeans Three Types of Enterprise JavaBeans Benefits. What is Enterprise JavaBeans (EJB). EJB is a part of the Java 2 Platform, Enterprise Edition (J2EE) Distributed Objects Server-side software components.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Enterprise JavaBeans' - latoya


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
enterprise javabeans

Enterprise JavaBeans

By Yung-Chien Chen

topics
Topics
  • What is Enterprise JavaBeans
  • Three Types of Enterprise JavaBeans
  • Benefits
what is enterprise javabeans ejb
What is Enterprise JavaBeans (EJB)
  • EJB is a part of the Java 2 Platform, Enterprise Edition (J2EE)
  • Distributed Objects
  • Server-side software components
j2ee application server api stack
J2EE Application Server API Stack
  • EJB – Enterprise Java Beans
  • RMI and RMI-IIOP
  • JNDI – Java Naming and Directory Interface
  • JDBC – Java Database Connectivity
  • JTA – Java Transaction API
  • JMS – Java Messaging Service
  • Java Servlets
  • JSP – Java Server Pages
  • Java IDL
  • JavaMail
  • JCA – Java Connector Architecture
  • JAXP – Java API for XML Parsing
  • JAAS – Java Authentication and Authorization Service
three types of ejb
Three Types of EJB
  • Session Beans
    • Actions by remote method invocation
  • Entity Beans
    • Data Objects
  • Message-Driven Beans
    • Actions by messaging
slide7

Entity Beans

Session Beans

Account id=0

Amount=100

FindAccount

Deposit

Withdraw

Transfer

Account id=1

Amount=200

Database

Employee id=0

Position=CEO

FindEmployee

Promote

Transfer

Employee id=1

Position=Manager

session bean types
Session Bean Types
  • Stateful
    • Functions that require multiple requests
  • Stateless
    • Functions that can be complete with one request
two ways to persist entity beans
Two Ways to Persist Entity Beans
  • Bean-Managed Persistence
    • developer writes code to perform persistent operations
  • Container-Managed Persistence
    • EJB Container generates data access code base on deployment descriptor
    • Harder to debug
message domains
Message Domains
  • Publish/subscribe
  • Point-to-Point

Producer 1

Consumer 1

Topic

Producer 2

Consumer 2

Producer 1

Queue

Consumer 1

Producer 2

components of a ejb
Components of a EJB
  • Bean class
  • Remote Interface
  • Home Interface
  • Local Interface
  • Local Home Interface
  • Deployment Descriptor
  • Vendor-Specific File
benefits
Benefits
  • Heterogeneity
  • Openness
  • Security
  • Scalability
  • Clustering
    • Redundancy
    • Failover
  • Transparency
  • Transaction