Introduction to Session Beans CHAPTER 4 (Web hosting ratings) A session
Introduction to Session Beans CHAPTER 4 A session bean represents work being performed for client code that is calling it. Session beans are business process objects that implement business logic, business rules, algorithms, and workflow. For example, a session bean can perform price quoting, order entry, video compression, banking transactions, stock trades, database operations, complex calculations, and more. They are reusable components that contain logic for business processes. Let s examine the characteristics of session beans in detail and then code up a stateful session bean. Session Bean Lifetime A key difference between session beans and other bean types is the scope of their lives. A session bean instance is a relatively short-lived object. It has roughly the lifetime equivalent of a session or of the client code that is calling the session bean. Session bean instances are not shared between multiple clients. For example, if the client code contacted a session bean to perform order entry logic, the EJB container is responsible for creating an instance of that session bean component. When the client later disconnects, the application server may destroy the session bean instance.
Please take a look on frontpage web hosting, and see why we provide the most affordable frontpage web hosting on the best equipment.