
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.
4.
In the JBoss Resource Refs list, select url/CatalogDAOSQLURL, and click Edit.
5.
In the Resource URL text field, enter http://localhost:8080/petstore/CatalogDAOSQL.xml, and
click Update.
6.
Click Update to finish configuring the PetStore web application, and close the window.
Configuring and Deploying Sun’s Pet Store
Configure the Pet Store Enterprise Application
2005-08-11 | Copyright © 2003, 2005 Apple Computer, Inc. All Rights Reserved.
24
Kommentare zu diesen Handbüchern