Talking to MySQL with Entity Beans
If all EJB let you do was talk to transient objects, it wouldn't have much use. Of course, EJB lets you do a lot more—including talking to databases.
You'll see now how to use container-managed persistence (CMP) to get at your data for customers and addresses using the JAWS CMP feature of JBoss.
JAWS is the JBoss implementation of container-managed persistence. Each vendor has its own technologies under development for CMP (it's still a new concept, and the standards are in a state of flux).
Setting up JAWS is just a matter of editing a few configuration files. The configuration files that you will need to alter are in the conf\default subdirectory of JBoss. The first, called jboss.jcml, is used to define the ...
Get MySQL™ and JSP™ Web Applications: Data-Driven Programming Using Tomcat and MySQL now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.