Subscribe
Tutorial search

Java EJB Tutorials


We hope that you will enjoy our Java EJB tutorials. Feel free to contact us if you would like to be a tutorial hero and contribute your own Java EJB tutorial to our site. Thank you !

Sort by:
MarshalException in Java - Cause and Solution
MarshalException in Java - Cause and Solution
Java.rmi.MarshalException is very difficult exception for newbies in Java which have just started with RMI or EJB. this exception is comes when Java objects is getting serialized before transmitting over network and normally comes at deploy time.
Difficulty:
An Eclipse / GlassFish / Java EE 6 Cookbook
An Eclipse / GlassFish / Java EE 6 Cookbook
A comprehensive tutorial about using Eclipse and the GlassFish v3 Java application server to implement Java EE 6 applications. It shows how to use different Eclipse project types for different purposes, how to do manual tests and how to implement automatic unit tests. You will not create a complete application, but more a vertical slice through an application. The idea is to just touch all relevant areas, not to finish a project. The tutorial assumes the existence of a relational database, and it concentrates on the Java application used as a backend. Using JSF or another server-based GUI framework is definitely out of scope. Completing the tutorial will take 6-8 hours
Difficulty:
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:
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:
Spring MVC Application Architecture
Spring MVC Application Architecture
This tutorial will present the entire picture of a Spring MVC web application to better explain the individual roles that Spring MVC plays and where it fits in the overall architecture.
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:
Struts Hibernate Integration
Struts Hibernate Integration
In this tutorial we will show how the Web Framework Struts and the Database Persistence Solution Hibernate can be used together.
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:
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:
First Hibernate
First Hibernate
Tutorial showing how to create a first Hibernate application. Full source code is included. The new Hibernate 3 version is used.
Difficulty:
Total Tutorials in Category: 18