
Pet Store is a sample J2EE application from Sun Microsystems. Pet Store showcases the power and flexibility
of the J2EE platform. This chapter provides a tutorial on the configuration of Sun’s Pet Store for deployment
in OS X Server.
Sun’s Pet Store is comprised of several applications. This tutorial uses the Pet Store enterprise application and
the Supplier enterprise application.
In this tutorial you obtain the Pet Store files from Sun, prepare your OS X Server system for a Pet Store
deployment, and configure the Pet Store and Supplier applications for deployment on JBoss.
Note: The companion files of this document include configured Pet Store archives that are ready
for deployment using MySQL as the database engine. They’re at
Application_Server_companion/Configured_Pet_Store_archives. You need to perform
only the steps listed in Set Up the Environment (page 17) and Deploy and Test the Application (page
29).
See http://developer.java.sun.com/developer/releases/petstore for more information on Sun’s Pet Store
application.
Set Up the Environment
Before you can configure an enterprise application for deployment in OS X Server, make sure that you have
all the files you need. Then create any necessary tables in your database, and ensure that the appropriate
processes are running:
1.
Get Pet Store from Sun.
Download the Pet Store enterprise application from http://developer.java.sun.com/developer/releases/pet-
store, and place the petstore1.3.2 directory in your home directory. (Pet Store 1.3.2 is also included
as part of this document’s companion files.)
2.
Configure MySQL:
a.
Launch MySQL Manager, located in /Applications/Server.
b.
Click the lock button, and authenticate as the system administrator.
2005-08-11 | Copyright © 2003, 2005 Apple Computer, Inc. All Rights Reserved.
17
Configuring and Deploying Sun’s Pet Store
Kommentare zu diesen Handbüchern