components JEE Servers Example • Large-scale, multi-tiered, scalable, reliable & secure network(web) applications • Applications used mostly by large enterprises • JEE offers a development model, APIs, services • Developers can concentrate on the real meat
components JEE Servers Example • Transforms and presents data in predefined format , readable to end-users • Handles user input and passes requests to business logic layer
Business components JEE Servers Example • Heart of the system • Contains workflow business rules and processing logic • Utilizes the persistence tier to retrieve and save data into the persistence storage
components JEE Servers Example • Provides a high-level object- oriented (OO) abstraction over the database layer • Responsible for fetching and persisting data.
components JEE Servers Example • Provides access to databases or other structured documents • Typically consists of a relational database management system or a No-SQL database
Overview Business components JEE Servers Example • Enterprise Java Beans (EJB) • Persistence : The ability to have data contained in Java objects automatically stored in a datasource • Managed by JPA using a techique called object- relational mapping (ORM) • Persistence provider : A framework that supports JPA
Business components JEE Servers Example Session Beans • Encapsulate the business process of an enterprise application • Every business process should be completed within a Session • Are the only EJB Components allowed to be directly invoked by the client
Servers Example @Stateless public class CarSearchBean { @EJB private CarFacade carFacade; public List<Car> searchCars(CarSearchCriteria criteria){ return carFacade.findByPlateModelColor(criteria); } }
and web server • Manages component's lifecycle, dispathces requests to application components • Provides interfaces to context data (request, response information) JSE vs JEE Overview Business components JEE Servers Example