EJB Tutorials

Types of EJB

  • 2007-02-20
  • Comments
  • aathishankaran
  • 553

There are three types of Enterprise Java Beans namely session beans, entity beans and message driven beans. This tutorial briefly explains these types of EJB.
Read More

Difference Between Session and Entity Beans

  • 2008-08-25
  • Comments
  • Paul Allen and Joseph Bambara
  • 553

A session bean is an EJB that is created by a client and usually exists only for the duration of a single client-server session. A session bean usually performs operations such as calculations or database access on behalf of the client. While a session bean may be transactional, it is not recoverable if a system crash occurs. Session bean objects can be stateless or they can maintain a conversational state across methods and transactions. If a session bean maintains a state, the EJB container manages this state if the object must be removed from memory. However, persistent data must be managed by the session bean object itself.
Read More

Difference Between Stateful and Stateless Session Beans

  • 2008-08-25
  • Comments
  • Paul Allen and Joseph Bambara
  • 563

Session beans can either be stateful or stateless. With stateful beans, the EJB container saves internal bean data during and in between method calls on the client’s behalf. With stateless beans, the clients may call any available instance of an instantiated bean for as long as the EJB container has the ability to pool stateless beans. This enables the number of instantiations of a bean to be reduced, thereby reducing required resources.
Read More

Required Classes/Interfaces That Must Be Provided for an Enterprise JavaBeans Component

  • 2008-08-25
  • Comments
  • Paul Allen and Joseph Bambara
  • 553

Here we review the component architecture of EJBs. We also cover the required classes and interfaces for EJB, which include the home and remote interfaces, the XML deployment descriptor, the business logic (bean) class, and the context objects. While these names may or may not be meaningful to you at this point, you will soon understand how each of these pieces fits into the EJB component model.
Read More

Managing Security in EJB

  • 2008-08-25
  • Comments
  • Paul Allen and Joseph Bambara
  • 553

To simplify the development process for the enterprise bean provider, the implementation of the security infrastructure is left to the EJB container provider and the task of defining security policies is left to the bean deployer. By avoiding putting hard-coded security policies inside bean code, EJB applications gain flexibility when configuring and reconfiguring security policies for complex enterprise applications. Applications also gain portability across different EJB servers that may use different security mechanisms.
Read More

Most Viewed Articles on EJB

Latest Tutorials

Subscribe to Tutorials

Related Tutorials

EJB 3 Entities

Web services basics

Required Classes/Interfaces That Must Be Provided for an Enterprise JavaBeans Component

Difference Between Session and Entity Beans

Difference Between Stateful and Stateless Session Beans

Managing Security in EJB

EJB Entity Beans

Types of EJB

Archived Comments

1. hello sir,
i am create project autosubtitle

View Tutorial          By: Dilip Gauswami at 2013-12-01 06:46:34

2. I have loaded allthe 5 java files.But how to imple
View Tutorial          By: Pandiyan at 2015-08-24 08:02:32

3. plz can you help me,,,because i need this tomorrow
View Tutorial          By: ivie at 2012-12-12 11:20:35

4. I am getting this exeception when trying to send m
View Tutorial          By: praveen at 2012-12-27 11:15:14

5. Nice explaination.. But wats the use of it? Can i
View Tutorial          By: kavita at 2013-04-04 07:10:14

6. Does your Siemens CX75 can show up as COM port dev
View Tutorial          By: mchon at 2008-10-10 18:24:11

7. great tutorial but for me blob handling is still s
View Tutorial          By: Sarcina Saptamani at 2011-11-10 09:15:07

8. Please send the complete code.. thanks!
View Tutorial          By: Roger22 at 2010-03-11 00:41:07

9. It is simple and clear.. Thnx.
View Tutorial          By: kiru at 2010-04-06 01:48:04

10. hey hiii.
at last the progrma has be runnin

View Tutorial          By: jugal at 2009-02-20 08:22:31