Develop JACL management scripts for the WebSphere Portal

Source: Internet
Author: User

The WebSphere Portal Server is an important platform for IBM for consolidation and collaboration. WebSphere Portal Server provides three ways for users to manage the Portlet, XML Configuration Interface, and Portal scripting Interface through a web-based approach. Web-based Management Portlet requires users to do a variety of manual operations, not automated management operations, only for simple management operations. XML Configuration Interface requires users to write XML configuration files, but the file is cumbersome to write and lacks process control and flexibility. Portal scripting Interface is introduced from version 5.1 and is refined and enhanced in version 6.0, and the JACL approach to writing management scripts is more flexible than in the first two ways.

Target Audience

The reader should have some experience in using and managing WebSphere Portal, and should have the basic knowledge of writing JACL scripts.

Portal Scripting Interface is a JACL-based scripting interface provided by the IBM WebSphere Portal. This article takes a specific JACL script as an example to show you how to write a WebSphere portal management script through portal scripting Interface.

How to run Portal scripting Interface

Portal Scripting Interface is a JACL-based management program provided by the WebSphere portal Server. Under Wps_home/bin There is a script program Wpscript.bat (non-Windows platform corresponds to wpscript.sh), which is the scripting management interface of the WebSphere Portal. Wpscript.bat need to run at the command line, there are two ways to use the Portal scripting Interface:

Interactive mode: At the command line, one side of the JACL script to explain the operation, more suitable for a number of simple and one-time operations;

Submit scripts: Write the JACL script in advance, and then pass the JACL script file name as a command-line parameter, which is useful for complex operations and actions that need to be performed repeatedly.

The Wpscript.bat method is called as follows:

Listing 1 running Portal Scripting Interface

wpscript.bat –conntype <conntype> -port <port> -user <admin_id>
-password <password> -f <jacl filename>

Here is a description of the parameters used in the above command:

-conntype: Connection mode, optional parameters, default to SOAP;

-port: The connection port, corresponds to the Wpssoapport attribute value in the wpconfig.properties;

-user and-password: The user name and password used to create the connection;

The pathname of the-f:jacl file, if this argument is omitted by way of interaction.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.