Java Application Server GuideFor Version 10.3 or Later2005-08-11
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
Before you can deploy an application on an application server, you have to start the application serverand then configure or assemble the application.
2. In the Computers & Services list, select Application Server.12Starting the Application Server2005-08-11 | © 2003, 2005 Apple Computer, Inc.
3. In the configuration pane, click Settings. From Configuration Name pop-up menu, choose theappropriate configuration.4. Click the Start Service tool
Starting the JBoss Deployment ToolTo start the deployment tool, double-click DeploymentTool.woa in /Library/JBoss/Applicationsor enter the following c
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
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
Configuring Your Application’s ComponentsTo configure a component, you choose it from the main window by clicking the appropriate link.This causes the
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
Enter the destination of the configured application in the text field of the Save Application window,and click Save Application.Deploying Your Applica
Apple Inc.© 2003, 2005 Apple Computer, Inc.All rights reserved.No part of this publication may bereproduced, stored in a retrieval system, ortransmitt
20Deploying Your Application2005-08-11 | © 2003, 2005 Apple Computer, Inc. All Rights Reserved.CHAPTER 2Configuring Applications
Pet Store is a sample J2EE application from Sun Microsystems. Pet Store showcases the power andflexibility of the J2EE platform. This chapter provides
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
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.
4. Close the window.Configure the AsyncSender Enterprise Bean1. Under AsyncSenderEJB (EJB), click Enterprise Beans. Then click AsyncSenderEJB.2.In the
6. Click Update to finish configuring the Catalog enterprise bean, and close the window.Configure the Customer ModuleThe following sections guide you
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
10. Set Auto Increment to yes.11. Click the CMP - Relationships tab.12. Configure the relationships.“Table 4-1” lists the relationship information for
f. Click Update to finish configuring the relationship role.g. Click Update to finish configuring the relationship.13. Click Update to finish configur
Configure the CreditCard Enterprise Bean1. Under Enterprise Beans under CustomerJAR (EJB), click CreditCardEJB.2.From the Table Name pop-up menu in th
ContentsIntroductionIntroduction to Java Application Server Guide 7Organization of This Document 7See Also 8Chapter 1Application Server Overview 9JBos
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/
6. Click Update to finish configuring the Counter enterprise bean, and close the window.Save the ApplicationTo save the configured PetStore applicatio
Configure the Supplier ModuleThe following sections explain how to configure the SupplierJAR module.Configure the Module Settings1. Under SupplierJAR
4.In the JBoss Resource Refs list, select jms/TopicConnectionFactory, and click Edit.5.From the Jndi Name pop-up menu, choose /ConnectionFactory, and
Configure the ContactInfo Enterprise Bean1. Under Enterprise Beans under SupplierPurchaseOrderJAR (EJB), click ContactInfoEJB.2.From the Table Name po
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
36Deploy and Test the Application2005-08-11 | © 2003, 2005 Apple Computer, Inc. All Rights Reserved.CHAPTER 3Configuring and Deploying Sun’s Pet S
Application-server management involves configuring the services available in an application server,turning services on and off, deploying applications
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
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
Configure the SupplierPurchaseOrder Module 33Configure the Supplier Web Application Module 34Save the Application 35Deploy and Test the Application 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
Figure 4-3 The JBoss Management Console window showing the Security Configuration pane of the log-inconfiguration serviceWhen you’re managing the serv
Figure 4-4 The JBoss Management Console window showing the Statistics pane of the Pet StoreShoppingCart enterprise beanWhen you’ re done managing, cli
Configuring Application ServersTo configure local application servers, choose the configuration you want to modify from the “Modifyconfiguration” pop-
Figure 4-6 The JBoss Management Console window showing the statistics of the Deploy ServiceStarting and Stopping ServicesYou can start and stop servic
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
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
HTTP load balancing provides a way to distribute user load among a group of application servers.The application servers can be standalone or configure
Figure 5-1The WebApp window of the petstore.ear archiveLoad Balancing and ClusteringLoad balancing provides a way to distribute user load among applic
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
Figures and TablesChapter 2Configuring Applications 11Figure 2-1 The Load Application window of the deployment tool 14Figure 2-2 The Loaded Applicatio
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
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
Test the ConfigurationFollow these steps to make sure that client requests are balanced among the application servers:1. Start the Web service in the
This table describes the changes to Java Application Server Guide.NotesDateChanged the title from "Mac OS X Server Java Application ServerAdminis
542005-08-11 | © 2003, 2005 Apple Computer, Inc. All Rights Reserved.REVISION HISTORYDocument Revision History
application server JBoss instance, which is startedthrough Server Admin.CMP (container-managed persistence) Enterprisebean persistence model in whic
562005-08-11 | © 2003, 2005 Apple Computer, Inc. All Rights Reserved.GLOSSARY
62005-08-11 | © 2003, 2005 Apple Computer, Inc. All Rights Reserved.FIGURES AND TABLES
Note: This document was previously titled Mac OS X Server Java Application Server Administration.JBoss is a powerful Java-based open-source applicatio
See AlsoTo use this document to its fullest, you should download its companion files, which are packaged inApplication_Server_companion.zip, located i
JBoss is an open-source highly popular Java-based application server. Based on the Java 2, EnterpriseEdition (J2EE) platform, JBoss provides an afford
Kommentare zu diesen Handbüchern