
Configure the SupplierOrder Enterprise Bean
1.
Under Enterprise Beans under SupplierPurchaseOrderJAR (EJB), click SupplierOrderEJB.
2.
From the Table Name pop-up menu in the SupplierOrderEJB window, choose SUPP_SupplierOrder.
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 SupplierOrder enterprise bean, and close the window.
Configure the Supplier Web Application Module
1.
Under SupplierWAR (WebApp), click Module Settings.
2.
In the JBoss Resource Env Refs list, select jms/opc/InvoiceTopic, and click Edit.
3.
From the Jndi Name pop-up menu, choose /topic/opc/InvoiceTopic, and click Update.
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.
Click Update to finish configuring the Supplier web-application module, and close the window.
Save the Application
1.
In the navigation window, click Save.
2.
In the text field in the Save Application window, enter /Library/Configured_Apps/supplier.ear,
and click Save Application.
3.
Close the window.
Deploy and Test the Application
To deploy Pet Store in OS X Server, copy the configured files to /Library/JBoss/3.2/deploy. (You can
also use the management tool to deploy the application. See Deploying Applications (page 41) for details.)
After about a minute, open http://localhost:8080/petstore in your web browser. You could also have
saved the EAR files directly to the JBoss deploy directory. However, it’s generally safer to configure application
files of undeployed archives.
Follow these steps to test Pet Store:
1.
Open http://localhost:8080/petstore in a web-browser window.
Configuring and Deploying Sun’s Pet Store
Deploy and Test the Application
2005-08-11 | Copyright © 2003, 2005 Apple Computer, Inc. All Rights Reserved.
29
Comentários a estes Manuais