Home » Archives for jGauravGupta

Author Archives: jGauravGupta

Avatar photo
Gaurav is a senior software engineer with a passion for learning. He is an evangelist of netbeans & new technologies and author of JPA Modeler , jBatch Suite etc . He loves to go beyond the same old day to day work and find new and innovative ways to do the same things more effectively.

EJB Transaction Management Example

1. Introduction Transactions free the application programmer from dealing with the complex issues of failure recovery and multi-user programming. The transactional system ensures that a unit of work either fully completes, or the work is fully rolled back. 2. Transaction Management Type in EJB The Enterprise Bean Provider and the client application programmer are not exposed to the complexity of ...

Read More »

EJB Tutorial for Beginners

1. Introduction Enterprise Java Beans (EJB) is a development architecture for building highly scalable and robust enterprise level applications to be deployed on JEE compliant Application Server such as JBOSS, Web Logic etc. This tutorial explains basics about EJB3 and shows a simple work through to set up a EJB3 project, create a entity bean and a session bean. EJB are ...

Read More »

EJB Interceptors Example

1. Introduction This is an example of how to use the javax.interceptor.* in an EJB. Interceptors are used, as the name suggests, to intercept ejb methods calls using methods annotated with interceptor annotation (@AroundInvoke , @AroundTimeout , @PostConstruct etc ). An interceptor method is called by Ejb Container before ejb method call it is intercepting. The Interceptors specification defines two ...

Read More »

EJB Timer Service Example

1. Introduction In this example we will show how to use EJB Timer Service . The EJB timer service is a container-provided service that allows the Bean Provider to register enterprise beans for timer callbacks to occur according to a calendar-based schedule, at a specified time, or at specified intervals. 2. Create a new EJB Module Open NetBeans IDE, choose ...

Read More »