![]() |
![]() |
|
This section provides an overview of using the WebLogic Zero Administration Client (ZAC), including the following topics:
Note: The WebLogic Zero Administration Client is a deprecated product. BEA recommends that you use the Sun Microsystems Java Web Start product. Java Web Start is a Java 2-compliant product that enables users to download Java applications.
WebLogic ZAC, the Zero Administration Client utility, lets you publish and republish applications, applets, and libraries with ZAC, so that they are transparently and automatically updated to the latest version on the end user client machine. With ZAC, you no longer need to manually distribute applications, applets, or libraries to your clients; you can depend on ZAC's automatic services to do so.
ZAC is extremely efficient. When a ZAC application is republished, only the minimal amount of data is sent over the network to each client, to bring the applications on your clients up-to-date. In a typical scenario where little or nothing has changed, the overhead for checking for new files at startup is not noticeable to a user.
ZAC is highly configurable, so that you can design how your application should be published, installed, and updated. You can check for updates to the application and to its dependent libraries each time the application starts or stops; on a scheduled basis, or you can disable the check for new ZAC updates altogether. Although this would disable ZAC's most powerful feature, it may be desirable for packages that you intend to distribute once only as a static version.
ZAC uses a protocol called the HTTP Distribution and Replication Protocol (DRP), a specification submitted to the W3C in August 1997 for the efficient replication of data over HTTP.
This document includes instructions on how to use the ZAC Publish Wizard to publish applications on a WebLogic Server for distribution to your users.
When you install on Windows with the install shield (.exe) version, WebLogic comes out-of-the-box with two ZAC packages, ZSimple and ZUpdate, that you can try out immediately to see how WebLogic ZAC works. (This pre-installed demo does not function correctly if you have installed WebLogic Server from the .zip file distribution.)
Non-Windows users can start the Publish Wizard from the command line (after setting your CLASSPATH with this command:
$ java weblogic.PublishWizard
You can open the package again after the test run starts, change a few parameters, and republish the application to see how the client responds.
The rest of this document describes how to create and publish a package, and how to create a bootstrap executable - which is the standard way to install and run an application from a ZAC package.
Any Java application, applet, or library can be published as a ZAC package. You do not need to add anything special to the Java source code to publish your program with ZAC. (However, ZAC does include a Java API that you can use in writing your application to add interactive control over when ZAC updates should occur or whether the application should respond immediately to ZAC updates. Developing with the ZAC API is discussed in Developing with WebLogic ZAC.)
ZAC works very simply from your user's perspective.
How you Publish a ZAC Package on the Server
The ZAC Publish Wizard makes publishing your application easy. You use the ZAC Publish Wizard to:
The ZAC Publish Wizard guides you through the process of creating and publishing a package with ZAC on a WebLogic Server. During the publish process, you set up the parameters necessary to run your application or ZAC package on the client machine, such as identifying:
An application is published to a WebLogic Server and is made available to your users via HTTP. You can republish the package each time you change your application or any of the libraries on which it depends.
How ZAC Installs a Published Application on the User's Machine
When you complete the publishing phase, your application is published on the WebLogic Server. The ZAC Publish Wizard generates a small installation program in native format for each machine type supported by ZAC. Your users download and run this program to install the published application or package. We shall refer to this installation program as the 'installer', in the rest of this document. The installer is a very small executable, and so is quick to download.
To make the published application available to users, just attach the installer to an email or embed an FTP link to it in an HTML page. The user downloads and runs the installer. Since the installation program is a native executable, a user doesn't need to pre-install a Java Runtime Environment (either a JRE or some Java development environment like the JDK).
The installer performs some or all of the following tasks, depending on how you have configured it from the ZAC Publish Wizard:
After the initial installation, the installer may be deleted from the client's machine.
How a Published Application Runs on the User's Machine
The installer installs your user application, as well as a native bootstrap file. Once the application is installed, your user will use the native-OS bootstrap to invoke the application. Part of the ZAC Publish Wizard process involves creating the bootstrap program.
Each time the client runs the bootstrapper, it first checks for new versions of the published application on the WebLogic Server. If a new version of your application - or any other ZAC packages that the ZAC application depends upon - has been published, the bootstrapper automatically updates the ZAC packages on the client machine with the new versions. The bootstrapper then starts the published application.
Setting up WebLogic for Publishing with ZAC
ZAC must be deployed as a Web application on the WebLogic Server for users to have access to it. Servlets included within the ZAC Web application handle requests from clients. ZAC is deployed on the server as a WAR file, zac.war. To prepare the ZAC package for deployment, do the following:
<context-param>
<param-name>weblogic.zac.publishRoot</param-name>
<param-value>C:/weblogic/publish</param-value>
</context-param>
<context-param> <param-name>weblogic.allow.read.weblogic.zac.myApp</param-name>
<param-value>Peter,Paul,Mary</param-value>
</context-param>
To deploy the ZAC Web application, do the following:
|
Copyright © 2000 BEA Systems, Inc. All rights reserved.
|