Configure the creditcard enterprise bean, Configure the customer enterprise bean, Configure the profile enterprise bean – Apple Mac OS X Server v10.3 User Manual
Page 29: Configure the petstore web application

Configure the CreditCard Enterprise Bean
1.
Under Enterprise Beans under CustomerJAR (EJB), click CreditCardEJB.
2.
From the Table Name pop-up menu in the CreditCardEJB window, choose
PS_CreditCard
.
3.
Map the CMP fields to the appropriate column names by selecting the field in the Cmp Fields
list, clicking Edit, choosing the corresponding column name from the Column Name list, and
clicking Update.
4.
Click the CMP - Mapping tab. From the Entity Command Name pop-up menu, choose
mysql-get-generated-keys
.
5.
Click Update to finish configuring the CreditCard enterprise bean, and close the window.
Configure the Customer Enterprise Bean
1.
Under Enterprise Beans under CustomerJAR (EJB), click CustomerEJB.
2.
From the Table Name pop-up menu in the CustomerEJB window, choose
PS_Customer
.
3.
Map the CMP fields to the appropriate column names by selecting the field in the Cmp Fields
list, clicking Edit, choosing the corresponding column name from the Column Name list, and
clicking Update.
4.
Click Update to finish configuring the Customer enterprise bean, and close the window.
Configure the Profile Enterprise Bean
1.
Under Enterprise Beans under CustomerJAR (EJB), click ProfileEJB.
2.
From the Table Name pop-up menu in the ProfileEJB window, choose
PS_Profile
.
3.
Map the CMP fields to the appropriate column names by selecting the field in the Cmp Fields
list, clicking Edit, choosing the corresponding column name from the Column Name list, and
clicking Update.
4.
Click the CMP - Mapping tab. From the Entity Command Name pop-up menu, choose
mysql-get-generated-keys
.
5.
Click Update to finish configuring the Profile enterprise bean, and close the window.
Configure the PetStore Web Application
1.
Under PetStoreWAR (WebApp), click Module Settings.
2.
In the JBoss Resource Refs list in the PetStoreWAR window, select
jdbc/CatalogDB
, and click
Edit.
3.
From the Jndi Name pop-up menu, choose
java:/MySqlDS
, and click Update.
Configure the Pet Store Enterprise Application
29
2005-08-11 | © 2003, 2005 Apple Computer, Inc. All Rights Reserved.
C H A P T E R 3
Configuring and Deploying Sun’s Pet Store