![]() ![]() ![]() |
|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
This exercise implements two standalone client applications to use the Note: Due to a bug in the 1.0 release of the J2EE RI regarding composite primary keys, you must download the 1.2.1 release of the J2SDK, Enterprise Edition. Prerequisites
Skeleton Code
Tasks
Start the Cloudscape database server with the command-line command
Start the J2EE RI using the command-line command
Edit the
Create a new
Add code to find the
Compile and run your client application.
Edit the
Create a new Inventory bean.
Create an instance of
Compile and run your client application. Where help exists, the task numbers above are linked to the step-by-step help page. Solution Source
As a solution, the source code for the client applications are providedas well as the Demonstration
myhost> java -classpath %CLASSPATH%; MusicStoreClient.jar; \ %J2EE_HOME% \lib\j2ee.jar musicstore.MusicClient Title: Luna Nueva Artist: Diego Torres Type: Latin Price: 12.58 myhost>
myhost> java -classpath %CLASSPATH%;MusicStoreClient.jar; \ %J2EE_HOME%\lib\j2ee.jar musicstore.MusicInventoryClient Building new inventory... Submitting new inventory... New inventory added to database. myhost> Upon examination, the database should then reflect the added inventory. The exact contents of the database will of course depend on what CD information you inserted: ExercisesShort CourseCopyright 1996-2000 jGuru.com. All Rights Reserved. |