Tutorial search
Java Tutorials
Tutorials
Stuff
Affiliates
Photoshop Templates
Featured Photoshop templates - professional ready to use designs for your next project.
View all templates
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 tutorials to our site. Thank you !
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).

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.

Tutorial explaining how to create CMP EJBs(container managed persistence) with a foreign key relation. Step by step example with sourcecode included.

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.
As applicationserver JBoss is used but you may replace it by any EJB 3 Server.

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.

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!
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!

In this tutorial we will show how the Web Framework Struts and the Database Persistence Solution Hibernate can be used together.

Sample chapter from "EJB 2.1 Kick Start" on installing an application server to developing and deploying an EJB on it.

First EJB 3 Tutorial explaining Ant and showing how to create a session and entity beans with EJB 3 annotations and JBoss.

Tutorial showing how to create a first Hibernate application. Full source code is included. The new Hibernate 3 version is used.

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.

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.

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.
Total Tutorials in Category: 14





