Apple Mac OS X Server v10.3 Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Logiciel Apple Mac OS X Server v10.3. Apple Mac OS X Server v10.3 User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer

Résumé du contenu

Page 1 - Java Application Server Guide

Java Application Server GuideFor Version 10.3 or Later2005-08-11

Page 2

In Mac OS X Server, JBoss is configured to use Tomcat (using the AJP connector) as its web serverand servlet container. In addition, HTTP and HTTPS (t

Page 3 - Contents

Before you can deploy an application on an application server, you have to start the application serverand then configure or assemble the application.

Page 4 - Glossary 55

2. In the Computers & Services list, select Application Server.12Starting the Application Server2005-08-11 | © 2003, 2005 Apple Computer, Inc.

Page 5 - Figures and Tables

3. In the configuration pane, click Settings. From Configuration Name pop-up menu, choose theappropriate configuration.4. Click the Start Service tool

Page 6 - FIGURES AND TABLES

Starting the JBoss Deployment ToolTo start the deployment tool, double-click DeploymentTool.woa in /Library/JBoss/Applicationsor enter the following c

Page 7 - Organization of This Document

After the deployment tool loads the application, it displays the Loaded Application window,shown in “Figure 3-2”.Figure 2-2 The Loaded Application win

Page 8 - See Also

Figure 2-3 The deployment-tool main window“Figure 3-3” shows the components of the petstore.ear archive. The following list describes someof the items

Page 9 - Application Server Overview

Configuring Your Application’s ComponentsTo configure a component, you choose it from the main window by clicking the appropriate link.This causes the

Page 10 - CHAPTER 1

Figure 2-5 A module-settings windowAfter configuring the elements in a pane, you click Update to confirm the changes. Keep in mind thatthe changes are

Page 11 - Configuring Applications

Enter the destination of the configured application in the text field of the Save Application window,and click Save Application.Deploying Your Applica

Page 12

Apple Inc.© 2003, 2005 Apple Computer, Inc.All rights reserved.No part of this publication may bereproduced, stored in a retrieval system, ortransmitt

Page 13 - Configuring Your Application

20Deploying Your Application2005-08-11 | © 2003, 2005 Apple Computer, Inc. All Rights Reserved.CHAPTER 2Configuring Applications

Page 14 - Loading Your Application

Pet Store is a sample J2EE application from Sun Microsystems. Pet Store showcases the power andflexibility of the J2EE platform. This chapter provides

Page 15 - CHAPTER 2

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

Page 16

5. In the Connect to Server window, enter the host name and the port of the application server. (Bydefault the host is localhost and the port is 1099.

Page 17

4. Close the window.Configure the AsyncSender Enterprise Bean1. Under AsyncSenderEJB (EJB), click Enterprise Beans. Then click AsyncSenderEJB.2.In the

Page 18

6. Click Update to finish configuring the Catalog enterprise bean, and close the window.Configure the Customer ModuleThe following sections guide you

Page 19 - Deploying Your Application

5.From the Entity Command Name pop-up menu, choose no-select-before-insert.The advantage of configuring the database and the data-source mapping at th

Page 20

10. Set Auto Increment to yes.11. Click the CMP - Relationships tab.12. Configure the relationships.“Table 4-1” lists the relationship information for

Page 21 - Set Up the Environment

f. Click Update to finish configuring the relationship role.g. Click Update to finish configuring the relationship.13. Click Update to finish configur

Page 22

Configure the CreditCard Enterprise Bean1. Under Enterprise Beans under CustomerJAR (EJB), click CreditCardEJB.2.From the Table Name pop-up menu in th

Page 23 - CHAPTER 3

ContentsIntroductionIntroduction to Java Application Server Guide 7Organization of This Document 7See Also 8Chapter 1Application Server Overview 9JBos

Page 24

4.In the JBoss Resource Refs list, select url/CatalogDAOSQLURL, and click Edit.5.In the Resource URL text field, enter http://localhost:8080/petstore/

Page 25 - Configure the Customer Module

6. Click Update to finish configuring the Counter enterprise bean, and close the window.Save the ApplicationTo save the configured PetStore applicatio

Page 26

Configure the Supplier ModuleThe following sections explain how to configure the SupplierJAR module.Configure the Module Settings1. Under SupplierJAR

Page 27

4.In the JBoss Resource Refs list, select jms/TopicConnectionFactory, and click Edit.5.From the Jndi Name pop-up menu, choose /ConnectionFactory, and

Page 28

Configure the ContactInfo Enterprise Bean1. Under Enterprise Beans under SupplierPurchaseOrderJAR (EJB), click ContactInfoEJB.2.From the Table Name po

Page 29

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, a

Page 30 - Configure the SignOn Module

36Deploy and Test the Application2005-08-11 | © 2003, 2005 Apple Computer, Inc. All Rights Reserved.CHAPTER 3Configuring and Deploying Sun’s Pet S

Page 31 - Save the Application

Application-server management involves configuring the services available in an application server,turning services on and off, deploying applications

Page 32 - Configure the Supplier Module

There are two types of users with the authority to use the management tool: administrator users(which are members of the appserveradm group) and monit

Page 33 - Configure the Module Settings

5.Replace new_value with the appropriate user name.6. Save the changes and restart your computer.Choosing a TaskAfter logging in to the management too

Page 34

Configure the SupplierPurchaseOrder Module 33Configure the Supplier Web Application Module 34Save the Application 35Deploy and Test the Application 35

Page 35

Managing Application ServersTo manage an application server, enter the JNDI port of the application server you want to manage(by default, 1099) in the

Page 36

Figure 4-3 The JBoss Management Console window showing the Security Configuration pane of the log-inconfiguration serviceWhen you’re managing the serv

Page 37 - CHAPTER 4

Figure 4-4 The JBoss Management Console window showing the Statistics pane of the Pet StoreShoppingCart enterprise beanWhen you’ re done managing, cli

Page 38

Configuring Application ServersTo configure local application servers, choose the configuration you want to modify from the “Modifyconfiguration” pop-

Page 39 - Choosing a Task

Figure 4-6 The JBoss Management Console window showing the statistics of the Deploy ServiceStarting and Stopping ServicesYou can start and stop servic

Page 40 - Managing Application Servers

Figure 4-7 The JBoss Management Console window showing the Start or Stop Services paneCreating a Data SourceYou can create a data source while managin

Page 41

3. In the Topic or Queue Name text field, enter the name of the topic or queue.4. Enter the name of the file in which the topic or queue configuration

Page 42

HTTP load balancing provides a way to distribute user load among a group of application servers.The application servers can be standalone or configure

Page 43

Figure 5-1The WebApp window of the petstore.ear archiveLoad Balancing and ClusteringLoad balancing provides a way to distribute user load among applic

Page 44

5. Double-click the appropriate site in the list (by default there’ s only one), which should be enabled.6. Click the Options tab, and deselect Perfor

Page 45 - Creating a Topic or a Queue

Figures and TablesChapter 2Configuring Applications 11Figure 2-1 The Load Application window of the deployment tool 14Figure 2-2 The Loaded Applicatio

Page 46 - Deploying Applications

The file as configured in Mac OS X Server is shown in “Figure 6-2”.Figure 5-2The workers.properties file in /etc/httpd13. Change line 2 to:worker.list

Page 47 - Sessions

worker.JBoss2.port=900718. Change line 27 so that it references the second node. It should look similar to this:worker.JBoss2.host=node2.mydomain.com1

Page 48 - Load Balancing and Clustering

Test the ConfigurationFollow these steps to make sure that client requests are balanced among the application servers:1. Start the Web service in the

Page 49

This table describes the changes to Java Application Server Guide.NotesDateChanged the title from "Mac OS X Server Java Application ServerAdminis

Page 50 - CHAPTER 5

542005-08-11 | © 2003, 2005 Apple Computer, Inc. All Rights Reserved.REVISION HISTORYDocument Revision History

Page 51

application server JBoss instance, which is startedthrough Server Admin.CMP (container-managed persistence) Enterprisebean persistence model in whic

Page 52 - Test the Configuration

562005-08-11 | © 2003, 2005 Apple Computer, Inc. All Rights Reserved.GLOSSARY

Page 53 - Document Revision History

62005-08-11 | © 2003, 2005 Apple Computer, Inc. All Rights Reserved.FIGURES AND TABLES

Page 54

Note: This document was previously titled Mac OS X Server Java Application Server Administration.JBoss is a powerful Java-based open-source applicatio

Page 55 - Glossary

See AlsoTo use this document to its fullest, you should download its companion files, which are packaged inApplication_Server_companion.zip, located i

Page 56 - GLOSSARY

JBoss is an open-source highly popular Java-based application server. Based on the Java 2, EnterpriseEdition (J2EE) platform, JBoss provides an afford

Commentaires sur ces manuels

Pas de commentaire