Java Techies- Solution for All
EJB [Enterprise Java Bean]
1.1 Introduction of EJB
An enterprise bean is a server-side component that encapsulates the business logic of an application.
Learn More... |
1.2 Benefits Enterprise Beans
Since business logic is separate and can be accessed from various channels, this allows clients to be thinner.
The presentation logic is completely decoupled from business logic.
Learn More... |
1.3 When To Use Enterprise Beans
Applications developed by using the enterprise beans deal with a variety of clients,
simply by writing few lines of code, so that the client can locate the enterprise beans.
The client locating the enterprise bean may be various, numerous and thin.
Learn More... |
1.4 Types of Enterprise Beans
EJB 3.0 defines two types of enterprise beans. They are as under
Learn More... |
1.5 Types of Session Beans
There are three type of enterprise bean define by the enterprise java bean [EJB]. They are as follows
Learn More... |
1.6 Stateful Session Bean Example
You need to follow several steps to use EJB with eclipse IDE. Firstly you have to create EJB project and then create web project Learn More... |
1.7 Stateless Session Bean Example
You need to follow several steps to use EJB with eclipse IDE. Firstly you have to create EJB project and then create web project Learn More... |
1.8 Singleton Session Bean Example
You need to follow several steps to use EJB with eclipse IDE. Firstly you have to create EJB project and then create web project Learn More... |
1.9 Accessing Enterprise Beans
Client gets access to enterprise beans using Dependency injections and JNDI lookup. Learn More... |
1.10 EJB Example Using JNDI Lookup
You need to follow several steps to use EJB with eclipse IDE. Firstly you have to create EJB project and then create web project Learn More... |
1.11 Lifecycle of EJBs
All session beans have their own lifecycle, which are show in the figure. Learn More... |
1.12 Enterprise Beans Exceptions Handling
The exceptions thrown by enterprise beans fall into two categories: system and application. If it encounters a system-level problem, your enterprise bean should throw a javax.ejb.EJBException. Learn More... |
1.13 Exceptions Handling Example
You need to follow several steps to use EJB with eclipse IDE. Firstly you have to create EJB project and then create web project Learn More... |
1.14 EJB Timers
The timer service of the enterprise bean container enables you to schedule timed notifications for all types of enterprise beans except for stateful session beans. You can schedule a timed notification to occur according to a calendar schedule, at a specific time, after duration of time, or at timed intervals. For example, you could set timers to go off at 10:30 a.m. on May 23, in 30 days, or every 12 hours. Learn More... |
1.15 @Asynchronous Calls
In a typical non-asynchronous method call, control is not returned to the client until the method has completed. But asynchronous methods return the call immediately without waiting for the method call to be completed. Learn More... |