From Twitter

SERVICES OFFERED BY EJB

SERVICES OFFERED BY EJB

JSP, Servlets and JavaBeans and EJBs have their own web container. The container of
EJB provides certain built-in services to EJBs, which is used by EJBs to perform different
functions. The services that EJB container provides are:

• Component Pooling
• Resource Management
• Transaction Management
• Security
• Persistence
• Handling of multiple clients
 
i) Component Pooling
 
The EJB container handles the pooling of EJB components. If, there are no requests for a
particular EJB then the container will probably contain zero or one instance of that
component in the memory. If, the need arises then it will increase component instances to
satisfy all incoming requests. Then again, if, the number of requests decrease, the
container will decrease the component instances in the pool. The most important thing is
that the client is absolutely unaware of this component pooling which the container
handles

ii) Resource Management
 
The container is also responsible for maintaining database connection pools. It provides
us a standard way of obtaining and returning database connections. The container also
manages EJB environment references and references to other EJBs. The container
manages the following types of resources and makes them available to EJBs:
 
• JDBC 2.0 Data Sources
• JavaMail Sessions
• JMS Queues and Topics
• URL Resources
• Legacy Enterprise Systems via J2EE Connector Architecture
 
iii) Transaction Management
 
This is the most important functionality served by the container. A transaction is a single
unit of work, composed of one or more steps. If, all the steps are successfully executed,
then, the transaction is committed otherwise it is rolled back. There are different types of
transactions and it is absolutely unimaginable not to use transactions in today's business
environments.
 
iv) Security
 
The EJB container provides it's own authentication and authorisation control, allowing
only specific clients to interact with the business process. Programmers are not required
to create a security architecture of their own, they are provided with a built-in system, all
they have to do is to use it

v) Persistence 
Persistence is defined as saving the data or state of the EJB on non J-C volatile media.
The container, if, desired can also maintain persistent data of the application. The
container is then responsible for retrieving and saving the data for programmers, while
taking care of concurrent access from multiple clients and not corrupting the data.
 
vi) Handling of Multiple Clients
 
The EJB container handles multiple clients of different types. A JSP based thin client can
interact with EJBs with same ease as that of GUI based thick client. The container is
smart enough to allow even non-Java clients like COM based applications to interact with
the EJB system

2 comments:

Labels

(MCS-031 (6) 2011 (5) 4nf (1) 5nf (1) ACCESS CONTROL In Relational Database (1) ALGORITHMICS (5) assignment 2014 2015 (1) AVAILABLE TOOLS & ALGORITHMS (5) BCA (1) BINARY SEARCH (1) Block Nested Loop Join (1) Build and Fix Model (1) BUILDING BLOCKS OF ALGORITHMS (1) CHARACTERISTICS OF AN ALGORITHM (2) Core Java (1) Data Communication Network Security (1) DATABASE SECURITY (1) EER tool (1) ELEMEMTARY ALGORITHMICS (2) ENHANCED ER TOOLS (1) EVOLUTION (1) EXAMPLE OF AN ALGORITHM (2) Indexed Nested-Loop Join (1) install servelet engine (1) INTRODUCTION (1) Iterative Enhancement Model (1) Java Server Pages (1) JDBC (1) JSP (2) LEVELS OF DATABASE SECURITY (1) MCA (9) MCA 051 (1) MCA 3rd Semester (8) MCA 4th Semester (1) MCA 5 sem (1) MCS-031 (7) MCS-031 : DESIGN AND ANALYSIS OF ALGORITHM (14) MCS-032 (1) MCS-033 (1) MCS-034 (2) MCS-035 (1) mcs-041 (2) MCS-042 (1) mcs-043 (2) mcs-052 solved assignment (1) MCSL-036 (2) Nested loop join (1) OBJECTIVES (1) Operating System (2) OUTLINE OF ALGORITHMICS (1) Principles of Management and Information Systems (1) PROBLEMS (1) QUERY PROCESSING AND EVALUATION (1) Query processing Optimisation (1) Question Papers (8) Related Topic (9) relational Database (1) SELECT OPERATION Query Processing (1) Servlet (1) Servlet Programme (1) Servlet Programming (1) SOFTWARE DEVELOPMENT MODELS (4) SOFTWARE ENGINEERING (4) Solution (7) Solved Assignment 2013 2014 (6) SOME PRE-REQUISITES AND Asymptotic Bounds ASYMPTOTIC BOUNDS INTRODUCTION (1) STATISTICAL DATABASE SECURITY (1) structure (1) SUMMARY (1) Waterfall Model (1) Write a C program to print the following triangle (1)