Apple Mac OS X Server v10.3 Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Software Apple Mac OS X Server v10.3. Apple Mac OS X Server v10.3 User Manual Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir

Resumo do Conteúdo

Página 1 - Java Application Server Guide

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

Página 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

Página 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.

Página 4 - Glossary 55

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 12

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

Página 13 - Configuring Your Application

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

Página 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

Página 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

Página 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.

Página 17

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

Página 18

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

Página 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

Página 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

Página 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

Página 22

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

Página 23 - CHAPTER 3

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

Página 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/

Página 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

Página 26

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

Página 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

Página 28

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

Página 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

Página 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

Página 31 - Save the Application

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

Página 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

Página 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

Página 34

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

Página 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

Página 36

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

Página 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

Página 38

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

Página 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

Página 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

Página 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

Página 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

Página 43

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 49

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

Página 50 - CHAPTER 5

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

Página 51

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

Página 52 - Test the Configuration

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

Página 53 - Document Revision History

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

Página 54

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

Página 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

Página 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

Comentários a estes Manuais

Sem comentários