To help understand the EJB3 cartridge, the following sample applications have been provided. All these samples are located in the andromda-plugins project on SF.net.
This sample application is located in the samples/demo-ejb3 directory of the andromda-plugins project on SourceForge.net.
The project has the same structure as described in AndroMDA Samples.
This sample demo illustrates the use of the EJB3 cartridge (EJB 3.0 functionality), manageable entities and web services. It is built for the MySQL database engine using JBoss 4.0.4 GA or newer.
Simply build the demo by executing mvn in the root of the project directory.
Once you have build the sample, you need to create the database called demo-ejb3. You can then deploy the following to JBoss.
The demo also contains simple clients that you can alter and execute to better understand the functionality in each demo sub-package.
This sample application is located in the samples/booking-seam directory of the andromda-plugins project on SourceForge.net.
The project has the same structure as described in AndroMDA Samples.
This booking system tries to replicate the JBoss Booking System (available from JBoss) to illustrate the JBoss Seam features. It also relies on the EJB3 cartridge. It is built for the MySQL database engine using JBoss 4.0.5 GA or newer.
Simply build the demo by executing mvn in the root of the project directory.
Once you have build the sample, you need to create the database called booking-seam. You can then deploy the following to JBoss.
This example does not contain any view components at this time. As JBoss Seam functionality improves, this project will serve as a complete example for both EJB 3.0 Seam components and JSF with Facelets view components.
This sample application is located in the samples/timetracker-ejb directory of the andromda-plugins project on SourceForge.net.
The project has the same structure as described in AndroMDA Samples.
This sample application is a re-make of the AndroMDA Timetracker sample application but instead uses the EJB3 and the JSF cartridges.
Simply build the demo by executing mvn in the root of the project directory.
Once you have build the sample, you need to create the database called timetracker. You can then deploy the following to JBoss.
Once you have deployed the EAR file, you can use the sql.txt MySQL script to import the data into your database. This file is located in the root directory of this project.