beautypg.com

Configure the signon module, Configure the user enterprise bean, Configure the counter enterprise bean – Apple Mac OS X Server v10.3 User Manual

Page 30

background image

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.

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.

30

Configure the Pet Store Enterprise Application

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