
Configure the SignOn Module
1.
Under SignOnJAR (EJB), click Module Settings.
2.
In the SignOnJAR window, click the CMP - Default Settings tab.
3.
From the Entity Command Name pop-up menu, choose no-select-before-insert, and click Update.
4.
Close the window.
Configure the User Enterprise Bean
1.
Under Enterprise Beans under SignOnJAR (EJB), click UserEJB.
2.
From the Datasource pop-up menu in the UserEJB window, choose MySQL 4.0.14 (java:/MySqlDS).
3.
From the Datasource Mapping pop-up menu, choose mySql.
4.
From the Table Name pop-up menu, choose PS_User.
5.
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.
6.
Click Update to finish configuring the User enterprise bean, and close the window.
Configure the Counter Enterprise Bean
1.
Under UniqueIdGeneratorJAR (EJB), click Enterprise Beans. Then click CounterEJB.
2.
From the Datasource pop-up menu in the CounterEJB window, choose MySQL 4.0.14 (java:/MySqlDS).
3.
From the Datasource Mapping pop-up menu, choose mySql.
4.
From the Table Name pop-up menu, choose PS_Counter.
5.
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.
6.
Click Update to finish configuring the Counter enterprise bean, and close the window.
Save the Application
To save the configured PetStore application, click Save in the navigation window and choose a location for it:
1.
Using the Finder or Terminal, create a directory under /Library named Configured_Apps.
2.
In the main window, click Save.
3.
In the text field in the Save Application window, enter /Library/Configured_Apps/petstore.ear,
and click Save Application.
4.
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.
25
Commentaires sur ces manuels