beautypg.com

Configure the pet store enterprise application, Open the petstore.ear file in the deployment tool – Apple Mac OS X Server v10.3 User Manual

Page 22

background image

c.

Click Install and then click Start.

d. Quit MySQL Manager.

3.

Create the Pet Store Tables:

a.

In Terminal, run the

mysql

command-line tool.

b. Enter

use test

and press Return.

c.

Copy the text in

Application_Server_companion/Pet_Store_resources/create_tables_sql.txt

(in this

document’s companion files) to the Clipboard, and paste its contents into the

mysql

command-line tool.

d. Enter

quit

and press Return.

4.

Deploy the

petstore-destinations-service.xml

file.

To prepare JBoss for running Pet Store, copy the

Application_Server_companion/Pet_Store_resources/petstore-destinations-service.xml

file included in this document’s companion files to

/Library/JBoss/3.2/deploy

.

5.

Start the application server.

You must be running the application server to configure Pet Store. Make sure the application
server is running on your computer. See

“Starting the Application Server”

(page 11) for details.

Configure the Pet Store Enterprise Application

This section guides you through the steps required to configure the

petstore.ear

file so that it can

be deployed in Mac OS X Server. This process involves specifying the data source that enterprise
beans use to obtain a connection to the database, mapping the enterprise beans’ CMP fields to table
columns, defining relationships among enterprise beans, and so on.

Open the petstore.ear File in the Deployment Tool

1.

Launch the JBoss deployment tool. (See

“Starting the JBoss Deployment Tool”

(page 14) for

details.)

2.

In the Load Application window, enter the full path to the

petstore.ear

file in the text field,

and click Load Application.

3.

Click “Click here to continue.”

4.

In the PetStoreEAR (Application) window (also known as the main window or the navigation
window), click Connect.

22

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