written 2.8 years ago by |
Introduction
• EJB stands for enterprise java beans.
• EJB java beans is server side component.
• EJB is an essential part of J2EE platform
• J2EE application containers contains the components that can be used by client for executing business logic
• EJB mainly contains the business logic and business data.
• EJB components always lie in some container which is called EJB container EJB component is an EJB class which is written by developer that implement business logic.
• It is a specification provided by Sun Microsystem to develop secured , robust and scalable distributed application.
• To run EJB application, you need application server (EJB container) such as, Jboss, Glassfish.
• EJB application is deployed on the server, so is called server side component also
• EJB container performs: -life cycle management -Security -Transaction management -object pooling
EJB Architecture
• EJB server:The server contains the EJB container
• An EJB client does not communicate directly with an EJB component Remote interface
• Define the business methods that can be called by client Home interface
• Method to create and destroy the proxies for the remote interface EJB container :the EJB specification defines a container as the environment in which one or more component execute it.