Step-by-Step Guide to create Servlets and EJBs
Package and Deploy on a JBoss server




Omondo Corporation, IBM/Eclipse Partnerworld for Developer
November 2003


Step 1:    Summary
Step 2:    Java Project
Step 3:    Project properties
Step 4:    Servlets and EJBs
Step 5:    JBoss Configuration
Step 6:    J2ee Deployment Diagram
Step 7:    Run the application


This tutorial is not copyright protected, you may copy elements of this tutorial as you wish.
Tutorial length: Under two hours
Formats: XHTML
Level: Beginners








Summary :

The purpose of this tutorial is to show that developing Eclipse applications and using Servlets and Ejb can be easy with Omondo EclipseUML technologies.

Omondo EclipseUML is a UML case tool which has natively integrated XDoclet technologies inside Eclipse. Omondo provides a XDoclet Eclipse plugin and J2ee model driven development architecture.

Our goal is always to integrate the best of breed open source technologies and to respect the spirit of that solution. This is why we decided to integrate XDoclet and add our modeling value, but did not change XDoclet source code. This is the garantee that EclipseUML will always easily upgrade to the latest release of any of its integrated open source technology, will always respect official standards and will always let our users change source code if needed.

XDoclet  is an open source project which enables Attribute-Oriented Programming for Java. In short, this means that you can add more significance to your code by adding meta data (attributes) to your Java sources. This is done in special JavaDoc tags. XDoclet will parse your source files and generate many artifacts such as XML descriptors and/or source code from it. These files are generated from templates that use the information provided in the source code and its JavaDoc tags.

XDoclet lets you apply Continuous Integration in component-oriented development. Developers should concentrate their editing work on only one Java source file per component.

This approach has several benefits:
  1. You don't have to worry about outdating deployment meta-data whenever you touch the code.
    The deployment meta-data is continuously integrated.

  2. Working with only one file per component gives you a better overview of what you are doing.
    If your component consists of several files, it is easy to lose track.
    If you have ever written an Enterprise Java Bean, you know what we mean.
    A single EJB can typically consists of 7 or more files.
    With XDoclet you only maintain one of them, and the rest is generated.

  3. You dramatically reduce development time and can concentrate on business logic, while XDoclet generates 85% of the code for you.

Currently XDoclet can only be used as part of the build process utilizing Jakarta Ant .

Although XDoclet originated as a tool for creating EJBs, it has evolved into a general-purpose code generation engine. XDoclet consists of a core and a constantly growing number of modules. It is fairly straightforward to write new modules if there is a need for a new kind of component.

XDoclet comes with a set of modules for generation of different kinds of files. Users and contributors can write their own modules (or modify existing ones) if they wish to extend the functionality of XDoclet.

You can cut Redundant Work. Model and Code your business logic and let XDoclet generate the necessary boiler plate and support code for it, while still having live bidirectional code and model synchronisation. This is a worldwide premier inside EclipseUML Enterprise Edition.

XDoclet's advanced code generation features make it easier to code J2EE applications.

XDoclet's modular design makes it easy for you to write your own modules and Omondo will add an Eclipse Velocity Editor to customize everything you need.

The screenshots were captured using Eclipse 2.1, EMF 1.1 and GEF 2.1

We are using Sun JDK 1.4.2 and Eclipse 2.1 on Windows XP SP1. We consider that you have successfully installed EclipseUML Enterprise Edition beta release 0.4.0.20031010 or a more recent release.


 
Last update Sat Nov 29 11:19:25 CEST 2003 Valid XHTML 1.0 Valid CSS All text, graphics © 2003 by Omondo