Deploying Web Applications; Deploying A Web Application Across A Cluster - MACROMEDIA 38000382 - JRun - Mac Getting Started Manual

Getting started guide
Table of Contents

Advertisement

Adding additional resources
Resources that you can add include image directories, JavaBeans, and class files for
resources such as database drivers. When adding these resources to a web application, you
must place them in the correct location in the web application directory structure. If the
resource is represented by a .class or JAR file, it must be located in a directory included in
the web application classpath (typically WEB-INF/classes or WEB-INF/lib).

Deploying web applications

JRun provides auto deploy and hot deploy features for dynamic deployment of web
applications, enterprise applications, and other J2EE modules, such as EJBs and
enterprise resource adapters, from the following module archive files or expanded
directories:
Web application (WAR file or directory)
Enterprise application (EAR file or directory)
Enterprise JavaBean (JAR file or directory)
Enterprise resource adapter (RAR file or directory)
When you copy a module archive file or expanded directory to a deploy directory
(jrun_root/servers/jrun_server, by default), JRun automatically deploys the application or
module, if the server is running, or deploys it the next time you start the server. The
deployment is dynamically updated when you modify a module archive file or
deployment descriptor.
In a production environment, it is best to deploy archive files for greater portability.
During development, deploying expanded directories provides the greatest flexibility and
ease-of-use. For more information, see JRun Assembly and Deployment Guide.

Deploying a web application across a cluster

JRun also automatically deploys a web application across a server cluster when it detects
an archive file in a cluster deploy directory. This feature does not support deploying
expanded directories. The default cluster deploy directory is
jrun_root/servers/jrun_server/SERVER-INF/cluster, but you can change the directory
through the JMC or the jrun.xml file. When you use the JMC to deploy an application
to a cluster, JRun copies the archive file to a cluster deploy directory on one of the
clustered servers. The server must be running for web application deployment and
synchronization across the cluster.
You must ensure that the web application resources, defined in the
jrun_server/SERVER-INF/jrun-resources.xml, such as JMS destinations, JMS
connection factories, JDBC data sources, and JavaMail sessions, are present or accessible
on each server in the cluster.
For more information about JRun clusters, see JRun Administrator's Guide.
Deploying web applications
65

Advertisement

Table of Contents
loading

This manual is also suitable for:

Jrun 4

Table of Contents