
EJB
™
Development Using Borland
®
JBuilder
®
8 and BEA WebLogic Server
™
7.0
23
There are lot of features available in Optimizeit Suite, which helps to detect critical memory
leaks, performance issues, deadlocks etc. This paper just explained a snapshot of some of the
features. Read the Optimizeit Suite product documentation for more information about other
features of Optimizeit Suite.
Working with entity beans
Create a project, assign WebLogic Server 7.x as the target application server for the project,
and create an EJB module. To get help on how to perform the above operations, refer to the
previous chapter “Working with session beans.”
For this exercise, enter the name of the project as TestEntProject in the directory
E:\Demo\WebLogic\TestEntProject and enter the EJB module name as TestEntMod.
Create an entity bean
An entity bean represents the state of real-time data from the database table(s). Using
JBuilder, users can create entity beans in following ways:
• First create entity beans and then generate a database from the entity beans.
• Generate entity bean from existing database.
For this exercise, lets focus on generating entity beans from an existing database.
Note: To work with entity beans, WebLogic Server needs to have the database driver archive for
the database in its classpath. From JBuilder main menubar, click Tools -> Configure Servers.
From the left-hand side, select WebLogic Application Server 7.x and make sure that the database
driver JAR file is added under the Class tab in the right-hand side.
Borland JDataStore™ database is already shipped with JBuilder 8. To add JDataStore driver
archive, add jdsserver.jar from <JBuilder8_Installed_Dir>\lib.
Comentarios a estos manuales