Subscribe
Tutorial search

Java Ejb Tutorials


Sort by:
Speeding up EJB lookups
Speeding up EJB lookups
This tutorial shows a possible way to speed up EJB lookups using the Singleton design pattern.
Difficulty:
Spring and EJB Transaction strategies
Spring and EJB Transaction strategies
Implementation of successful transaction processing in Java applications is not a trivial exercise. Using examples from the Spring Framework and the Enterprise JavaBeans (EJB) 3.0 specification, this article explains how the transaction models work and how they can form the basis for developing transaction strategies.
Difficulty:
EJB 3 entities
EJB 3 entities
The tutorial introduces the Entity Manager Service which provides methods for persisting, finding, querying, removing and updating entities. It then goes on to show the examples of the EntityManager.persist () and EntityManager.find () methods. The tutorial also introduces the concept of a persistence context, which is the set of managed entity instances. Finally, it states some examples of overriding default rules for mapping entities to relational tables.
Difficulty:
Accessing EJBs through firewalls
Accessing EJBs through firewalls
Ever try to write a J2EE application accessing EJBs across a firewall? It can be messy, and developers often must resort to all kinds of workarounds, none of them particularly "neat." Developers often write a servlet to intercept HTTP requests and delegate them to EJBs, which is kind of a kludge. Another approach that uses tunneling technologies-such as RMI over HTTP-can entail a big performance hit. But there is a better way. You can solve this problem elegantly by using Java Secure Socket Extension (JSSE).
Difficulty:
EJB exception handling
EJB exception handling
As J2EE has become the enterprise development platform of choice, more and more J2EE-based applications are going into production. One important component of the J2EE platform is the Enterprise JavaBeans (EJB) API. Together, J2EE and EJB technology offer many advantages, but with these advantages come new challenges. In particular, any problem in an enterprise system must be resolved quickly. In this article, Enterprise Java programming veteran Srikanth Shenoy reveals his best practices in EJB exception handling for faster problem resolution.
Difficulty:
CMP EJB relation tutorial
CMP EJB relation tutorial
Tutorial explaining how to create CMP EJBs(container managed persistence) with a foreign key relation. Step by step example with sourcecode included.
Difficulty:
EJB 3 and Struts Framework Tutorial using JBoss
EJB 3 and Struts Framework Tutorial using JBoss
This tutorial explains how to create a complete web application using EJB 3 and the Struts Framework. Step by step the web application is created. Full source code is provided as well.
As applicationserver JBoss is used but you may replace it by any EJB 3 Server.
Difficulty:
EJB 3.0 Persistence out of a J2EE container
EJB 3.0 Persistence out of a J2EE container
In this article we will learn how to manage the persistence issues without being tied to use a J2EE application server.
We will build a very basic sample application that saves and loads data on a database using an EJB 3.0 persistence implementation.

At present (April 2007) there exist two implementations of the EJB 3.0 persistence specification: the first is Hibernate-based and was adopted by JBoss, while the other is Oracle Toplink, included into the Oracle Application Server OC4J and into the EJB 3.0 Sun Reference Implementation also known as Glassfish Project .
Note that EJB 3.0 persistence specifications are only a part of the EJB 3.0 specifications. They do not deal with Session Beans (stateless or stateful), but only with the Entity Beans.
Well, the good news is that, as long as we need only the EJB 3.0 persistence layer and do not need Session Beans, we can use Hibernate or Toplink implementation (our choice!) just into any Java application, without the need of a J2EE container, not even a web server, just from a plain Java class!

Difficulty:
EJB 2.1 Kick Start : Implementing a Solution Using EJB 2.1.
EJB 2.1 Kick Start : Implementing a Solution Using EJB 2.1.
Sample chapter from "EJB 2.1 Kick Start" on installing an application server to developing and deploying an EJB on it.
Difficulty:
Introduction to EJB
Introduction to EJB
This article gives an overview of an EJB with JBoss as AS and DOS as a client
Difficulty:
Integrating Struts Framework and EJB
Integrating Struts Framework and EJB
Using a small library application we show step by step how to integrate Struts and EJB - xDoclet, Jboss, Eclipse, PostgreSQL/MyEclipse
EJB version is 2.1
Difficulty:
EJB 3 tutorial using Eclipse, Ant and JBoss
EJB 3 tutorial using Eclipse, Ant and JBoss
First EJB 3 Tutorial explaining Ant and showing how to create a session and entity beans with EJB 3 annotations and JBoss.
Difficulty:
eclipse xDoclet EJB Tutorial
eclipse xDoclet EJB Tutorial
Basic Tutorial showing how to create an entity EJB using xDoclet. Source code is included. As IDE we used eclipse with the Myeclipse plugin. As Databased PostgreSQL or Mysql can be used.
Difficulty:
EJB 3 Tutorial using Eclipse, MyEclipse, JBoss
EJB 3 Tutorial using Eclipse, MyEclipse, JBoss
EJB 3 Tutorial using Eclipse and the MyEclipse plugin showing how to create session and entity beans with EJB 3 annotations and JBoss application server.
Difficulty:
Session Bean facade to an Entity EJB
Session Bean facade to an Entity EJB
Tutorial explaining how to use the session bean facade pattern. A simple session EJB and a entity bean is created with xDoclet using eclipse/myeclipse as IDE. Step by step example with sourcecode included.
Difficulty:
Search Term(s) (1): ejb