beautypg.com

Configure the supplierpurchaseorder module, Configure the module settings, Configure the address enterprise bean – Apple Mac OS X Server v10.3 User Manual

Page 33

background image

4.

In the JBoss Resource Refs list, select

jms/TopicConnectionFactory

, and click Edit.

5.

From the Jndi Name pop-up menu, choose

/ConnectionFactory

, and click Update.

6.

In the JBoss Resource Env Refs list, select

jms/opc/InvoiceTopic

, and click Edit.

7.

From the Jndi Name pop-up menu, choose

/topic/opc/InvoiceTopic

, and click Update.

8.

Click Update to finish configuring the SupplierOrder message-driven bean, and close the window.

Configure the SupplierPurchaseOrder Module

These sections explain how to configure the SupplierPurchaseOrderJAR module.

Configure the Module Settings

1.

Under SupplierPurchaseOrderJAR (EJB), click Module Settings.

2.

In the SupplierPurchaseOrderJAR window, click the CMP - Default Settings tab.

3.

From the Datasource pop-up menu, choose MySQL 4.0.14 (java:/MySqlDS).

4.

From the Datasource mapping pop-up menu, choose

mySql

.

5.

From the Entity Command Name pop-up menu, choose

no-select-before-insert

.

6.

Click the CMP - PK Generation tab.

7.

In the Unknown Pk Class text field, enter

java.lang.Long

.

8.

In the Field Name text field, Enter

pk

.

9.

In the Column Name text field, enter

pk

.

10. Set Auto Increment to yes, and click Update.

11. Close the window.

Configure the Address Enterprise Bean

1.

Under SupplierPurchaseOrderJAR (EJB), click Enterprise Beans. Then click AddressEJB.

2.

From the Table Name pop-up menu in the AddressEJB window, choose

PS_Address

.

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 Address enterprise bean, and close the AddressEJB window.

Configure the Supplier Enterprise Application

33

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