Developing Entity EJBs require an application server and a relational database, and, optionally, a Java IDE to improve productivity and simplify the development. Eclipse IDE is the most commonly used open source Java IDE and MySQL database is the most commonly used open source relational database. Oracle Enterprise Pack for Eclipse (OEPE) All-In-One edition bundles a pre-configured Eclipse and Eclipse plugins. Oracle has acquired the open source MySQL database. MySQL database is available under the GPL license; a commercial license is also available without the precondition to purchase support services from Oracle. In this chapter, we shall develop an EJB 3.0 entity using the Eclipse-WebLogic Server-MySQL combination; you will learn the following:
Creating a MySQL database table
Configuring WebLogic Server with MySQL database
Creating a JPA project in Eclipse
Creating an EJB 3.0 entity
Creating a persistence configuration...