[WEBINAR] Application Acceleration: Faster Performance for End Users

Session Bean

Definition - What does Session Bean mean?

A session bean represents a single Java Platform 2, Enterprise Edition (J2EE) server application, which handles business tasks for its client inside the server.

When a user and computer exchange a dialog, an interactive session occurs. A session bean resembles an interactive session in that a session bean has only one client. After a client terminates, the session bean also ends, as does the relationship between the session bean and the client.

Techopedia explains Session Bean

When a client accesses a server application, the client session bean begins. After the client stops, the session bean stops and is no longer related to the client. Stateful session beans and stateless session beans are the two types of session beans.

Stateful session bean instance variables, which indicate the state of the client-bean interaction, are retained for the client-bean interaction period. The state is no longer retained when interaction ends. Stateless session bean instance variables (those containing the state of the session) are retained as long as the method is invoked. The state is not retained for the entire session duration.

There are two critical circumstances where session beans should be used. One is when only one client will be accessing a bean instance during a particular period of time. The second is when the state of the bean need not remain persistent, meaning it will only last a few hours.

Techopedia Deals

Connect with us

Techopedia on Linkedin
Techopedia on Linkedin
"Techopedia" on Twitter

Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join thousands of others with our weekly newsletter

Free Whitepaper: The Path to Hybrid Cloud
Free Whitepaper: The Path to Hybrid Cloud:
The Path to Hybrid Cloud: Intelligent Bursting To Amazon Web Services & Microsoft Azure
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.