Apache Geronimo Communication Basics-development, deployment, and testing (top)
Apache Geronimo contains top-notch messaging implementations and world-class Enterprise JavaBeans (EJB) implementations, enabling you to use message-driven beans (MDB) in your own applications. This means that other components can use messaging to interact with your application as long as the appropriate resource adapters are available. This series of tutorials details the creation of a java™platform, Enterprise Edition (Java EE) application in which users, administrators, and even other applications can interact with the MDB by using the Java Apache Mail Enterprise Server (also known as Apache James) sends e-mail, and Apache James then uses the Java EE Connector Architecture (JCA) resource adapter to communicate with Geronimo in turn.
Before you start
This series of tutorials is intended for Java EE programmers who want to learn how to build integrated solutions with various Java EE components, including MDB and JCA resource adapters. This tutorial assumes that you are familiar with basic Java and Java EE concepts such as EJB, Java message Service (JMS), MDB, and Unified Modeling Language (UML) diagrams.
About this series
In this three-part series, you'll build a sample application that understands how to integrate different Java EE components to develop complex applications.
You can download the sample application in this article, which demonstrates how the data for e-mail in Apache James is flowing through the JCA resource adapter, MDB, EJB to the Apache Geronimo application server.
This issue is part 1th of the series of tutorials that describes how to develop MDB, entity beans, and container-managed persistence (CMP) and how to deploy and test these components in Apache Geronimo.
Part 2nd explains how to create e-mail applications (Mailet and Matcher) and deploy them to the Apache James e-mail server.
The 3rd part links the entire application together. You will learn to develop, deploy, and test the JCA resource adapters for the Apache James e-mail server, which interacts with James and Geronimo through an MDB.
About this tutorial
This tutorial is part 1th of a three-part series that focuses on developing, deploying, and testing a variety of components for an integrated Java EE application. This application demonstrates how the data for an e-mail message from the Apache James e-mail server flows through the JCA resource adapter and MDB to the Apache Geronimo application server.
System Requirements
To complete this tutorial, you need the following tools:
Java EE Application Server provided by Apache Geronimo--apache
Apache James 2.2--Java-based simple Mail Transfer Protocol (SMTP), Post Office Protocol V3 (POP3), and network News Transfer Pro Tocol (NNTP) news server
Apache Derby Database-open source, lightweight database, embedded in Geronimo, so no need to install separately
Java 1.4.2 provided by Sun Microsystems Company
Sample source file
In the downloads section of this tutorial you will get the Geronimo.mdb.part1source.zip file, which contains the source code, the EJB JAR, and the descriptor file for this tutorial. The components of the. zip file are detailed below:
-DDS (contains descriptor XML file)
-Deploy (Po-ejb.jar)
-Lib (Examples.jar and Tester.jar)
-SRC (Java file for MDB and entity EJB)
-Deploy.cmd
-Undeploy.cmd
-Runtester.cmd