amar
Joined: 25 Apr 2006 Posts: 179
|
Posted: Mon May 08, 2006 8:43 am Post subject: Using container-managed persistence with jBoss |
|
|
This article presensts a step-by-step example of creating, deploying and testing an Entity JavaBean that uses
This example is very simple, and is a variation of the old favourite `music CD' case study. I have chosen this example because the application is likely to be familiar to most people without much explanation. In short, the `CD' EJB models a music CD. Applications will want to add and delete CDs to a collection, and search the collection for specific CDs. There is also a `CDCollection' EJB that lists and searches collections of CDs. The full source code to accompany this article can be found here. This archive contains the Java source code, JavaDoc documentation, and a text file of test data to initialize the database.
Although I will occasionally make reference to Linux, this is only because that's what I use for EJB development; most of the material in this article will work with any Unix version and even with Windows NT if the directory structure is adjusted accordingly. jBoss is written entirely in Java, as is the `Hypersonic' database with which it is supplied. Searching a database requires lots of repetitive operations, and an interpreting Java system will be extremely slow if the database is large.
for read more information:
http://www.ajlopez.net/ArticuloVe.php?Id=43 |
|