BEA Systems, Inc.

WebLogic Server 8.1 API Reference

weblogic.management.tools
Class WebAppComponentRefreshTool

java.lang.Object
  |
  +--weblogic.management.tools.WebAppComponentRefreshTool

Deprecated. Use weblogic.Deployer instead

public class WebAppComponentRefreshTool
extends java.lang.Object

This utility provides for the dynamic refresh of static (non class) files.

It can be run either from the command line, or by constructing an object of this type and calling the refresh() method.

Author:
Copyright © 2002 BEA Systems, Inc. All Rights Reserved.

Inner Class Summary
 interface WebAppComponentRefreshTool.ManagedServerNotRunningException
          Deprecated.  
 interface WebAppComponentRefreshTool.NoSuchComponentException
          Deprecated.  
 
Constructor Summary
WebAppComponentRefreshTool(java.lang.String adminServerUrl, java.lang.String username, java.lang.String password, java.lang.String appName, java.lang.String compName, java.lang.String[] jsps)
          Deprecated. Use weblogic.Deployer instead
WebAppComponentRefreshTool(java.lang.String adminServerUrl, java.lang.String username, java.lang.String password, java.lang.String appName, java.lang.String compName, java.lang.String[] jsps, boolean delete)
          Deprecated.  
WebAppComponentRefreshTool(java.lang.String adminServerUrl, java.lang.String username, java.lang.String password, java.lang.String appName, java.lang.String compName, java.lang.String root, java.lang.String[] jsps)
          Deprecated. Use weblogic.Deployer instead
WebAppComponentRefreshTool(java.lang.String adminServerUrl, java.lang.String username, java.lang.String password, java.lang.String appName, java.lang.String compName, java.lang.String root, java.lang.String[] jsps, boolean delete)
          Deprecated. Use weblogic.Deployer instead
 
Method Summary
static void main(java.lang.String[] args)
          Deprecated.  
 void refresh()
          Deprecated. Use weblogic.Deployer instead
static void usageAndExit()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebAppComponentRefreshTool

public WebAppComponentRefreshTool(java.lang.String adminServerUrl,
                                  java.lang.String username,
                                  java.lang.String password,
                                  java.lang.String appName,
                                  java.lang.String compName,
                                  java.lang.String[] jsps,
                                  boolean delete)
                           throws javax.management.InstanceNotFoundException,
                                  javax.naming.NamingException,
                                  WebAppComponentRefreshTool.ManagedServerNotRunningException,
                                  java.rmi.ConnectException,
                                  javax.management.MalformedObjectNameException,
                                  WebAppComponentRefreshTool.NoSuchComponentException
Deprecated. 

WebAppComponentRefreshTool

public WebAppComponentRefreshTool(java.lang.String adminServerUrl,
                                  java.lang.String username,
                                  java.lang.String password,
                                  java.lang.String appName,
                                  java.lang.String compName,
                                  java.lang.String[] jsps)
                           throws javax.management.InstanceNotFoundException,
                                  javax.naming.NamingException,
                                  java.rmi.ConnectException,
                                  javax.management.MalformedObjectNameException,
                                  WebAppComponentRefreshTool.NoSuchComponentException
Deprecated. Use weblogic.Deployer instead

Constructs an object that can represents a set of pages to be refreshed.

Use this constructor and the refresh() method to use this tool from within another java program instead of on the command line.

Parameters:
username - The user to connect to the admin server. This user must have system priveledges
password - The password for the user (above)
appName - The name of the application that these files belong to.
compName - The name of the component that these files belong to.
jsps - An array representing the list of files to be refreshed. Files can be any type of static file. (.class files cannot be refreshed with this tool.)
adminServerUrl - Description of the Parameter
Throws:
javax.management.InstanceNotFoundException - Description of the Exception
javax.naming.NamingException - Description of the Exception
java.rmi.ConnectException - Description of the Exception
javax.management.MalformedObjectNameException - Description of the Exception
WebAppComponentRefreshTool.NoSuchComponentException - Description of the Exception

WebAppComponentRefreshTool

public WebAppComponentRefreshTool(java.lang.String adminServerUrl,
                                  java.lang.String username,
                                  java.lang.String password,
                                  java.lang.String appName,
                                  java.lang.String compName,
                                  java.lang.String root,
                                  java.lang.String[] jsps,
                                  boolean delete)
Deprecated. Use weblogic.Deployer instead

Constructs an object that can represents a set of pages to be refreshed/deleted.

Use this constructor and the refresh() method to use this tool from within another java program instead of on the command line.

Parameters:
username - The user to connect to the admin server. This user must have system priveledges
password - The password for the user (above)
appName - The name of the application that these files belong to.
compName - The name of the component that these files belong to.
root - Root Directory for JSPs to be refreshed. This path is pre-pended to relation path specified in JSP list to construct JSP absolute path. Default for the same is current directory.
jsps - An array representing the list of files to be refreshed. Files can be any type of static file. (.class files cannot be refreshed with this tool.)
delete - Specifies whether or not the user wants to delete files rather than add new files or refresh existing files.
adminServerUrl - Description of the Parameter

WebAppComponentRefreshTool

public WebAppComponentRefreshTool(java.lang.String adminServerUrl,
                                  java.lang.String username,
                                  java.lang.String password,
                                  java.lang.String appName,
                                  java.lang.String compName,
                                  java.lang.String root,
                                  java.lang.String[] jsps)
Deprecated. Use weblogic.Deployer instead

Constructs an object that can represents a set of pages to be refreshed.

Use this constructor and the refresh() method to use this tool from within another java program instead of on the command line.

Parameters:
username - The user to connect to the admin server. This user must have system priveledges
password - The password for the user (above)
appName - The name of the application that these files belong to.
compName - The name of the component that these files belong to.
root - Root Directory for JSPs to be refreshed. This path is pre-pended to relation path specified in JSP list to construct JSP absolute path. Default for the same is current directory.
jsps - An array representing the list of files to be refreshed. Files can be any type of static file. (.class files cannot be refreshed with this tool.)
adminServerUrl - Description of the Parameter
Method Detail

main

public static void main(java.lang.String[] args)
Deprecated. 

usageAndExit

public static void usageAndExit()
Deprecated. 

refresh

public void refresh()
Deprecated. Use weblogic.Deployer instead
This method handles the update of all files specified for this object. The list of files to refresh is given in the constructor.

This method also handles the deletion of files from an application. There is a delete flag specified in the constructor. If that flag is set to true, this method will delete the files specified instead of adding/refreshing them.


Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs81b