beautypg.com

Save the application, Deploy and test the application – Apple Mac OS X Server v10.3 User Manual

Page 35

background image

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 Mac 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

46) 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.

2.

Click the link that takes you to the store.

3.

In the Welcome to the BluePrints Petstore webpage, click Birds.

4.

In the Items webpage, click Amazon Parrot.

5.

In the Product webpage, click Add to Cart.

6.

In the Cart webpage, click Check Out.

7.

In the Sign On webpage, click Sign In.

8.

In the Enter Order Information webpage, click Submit.

If you get an error page during the test, make sure JBoss is running and recheck the configuration
settings described in

“Configure the Pet Store Enterprise Application”

(page 22) and

“Configure the

Supplier Enterprise Application”

(page 31).

Deploy and Test the Application

35

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