[Top] [Prev] [Next] [Bottom]


Publishing Channels

The Publisher tool publishes channels to a transmitter on a server. Once published, they become channels to which a client can subscribe. In its simplest form, publishing is the IntelliPortal method for uploading channels to a server. It is a special way of copying channel files to the transmitter that communicates with a client application. To make a channel available to tuners, you move the source code and data files to the server in one directory, using the Publisher. To update a channel with new code or data, you simply re-publish the channel with updated files; only the new or modified files are copied to the server.

You also use the Publisher to delete previously published channels as explained below in Publish Properties. After an update, a deleted channel is not available to end users.

Channel developers must use a directory structure that places all objects for a channel in one folder. It contains all the runtime objects, source code, bitmaps, sound files, etc. that are necessary to run the channel. The folder is then published as a directory or as a directory tree that resides on the server. For example, all images, sound files, and source code might reside in the folder c:\intelliportal\channels\mychannel. Or you could publish the files as a tree structure with multiple subdirectories.

c:\intelliportal\channels\mychannel\images
c:\intelliportal\channels\mychannel\wav
c:\intelliportal\channels\mychannel\sourcecode

In both cases, the directory c:\intelliportal\channels\mychannel is the root publish directory for the channel and all files and subdirectories in the tree are uploaded during publishing. The Publisher itself creates additional files in this root directory that are required by the channel. Some of these files contain properties like channel type, channel name, and runtime characteristics; others like server name, transmitter port, etc. define the server environment.

The Publisher is also used to publish certain .jar files, including those needed by the MECA Storage Facility. See the Classpath field on the General tab for more information.

___________________________________

Topics in this section

Using the Publisher

The Publisher is used to publish channels to a transmitter. The main window (the Channels tab) for publishing channels is shown below and the tabbed items are explained on the following pages. You can use the Publisher to edit channel properties, to publish channels to a transmitter, or to delete channels from a transmitter. You can start the Publisher from Solaris or from Windows. From Solaris, change to the directory where the tools are installed and type publish.sh. From Windows, navigate to the Publisher from the Start menu.

Publisher Window

The main window shows all channels that are currently visible to the Publisher. This does not mean that the channel has actually been published. It just means the channel has been defined with the Publisher and is available for publishing.

Add Adds a channel to the Publisher list of channels that are available for publishing. This is the first step in publishing a channel.
Remove Removes a channel from the Publisher list of channels that are available for publishing. This action does not delete any files; it simply removes the channel from the list and makes the files unavailable for publishing.

Publishing System and Sample Channels

When initially installing IntelliPortal, the Publisher window is automatically populated with the required system channels (and optional sample channels) that must be published as part of the installation. The System channels and the Startup sample channel are required. The remaining Sample channels are optional. The General properties for these channels are already defined and should not be changed. All you have to do is select and Publish them as explained in Publishing Multiple Channels.

Before publishing the System and Sample channels, they must be installed in a writable directory on disk; you cannot publish these channels from the installation CD-ROM.

Publishing Individual Channels

After the initial installation, you can publish or remove individual channels as explained below.

To publish a channel
  1. Start the Publisher.
  2. In the main Publisher window, click Add.
  3. Navigate to the appropriate directory, highlight the folder you want to publish, and click Add Channel. (The channel name takes the folder name and is added to the list under Channel Name.)
  4. Go to the General tab and specify the properties (see General Properties) that will be published with the channel.
  5. Go to the Publish tab. Fill in the appropriate fields (see Publish Properties), click Publish, and you are done.
To remove a channel
  1. Start the Publisher.
  2. In the main Publisher window, select a channel, click Remove, and confirm when prompted. This action does not delete any files; it simply removes the channel from the list of files that are available for publishing. To remove channel files from the server entirely, use the Delete button on the Publish tab.

Publishing Multiple Channels

Multi-publishing lets you select and publish (or remove) multiple channels at once. It greatly simplifies the task of publishing (or removing) more than one channel. You can only multi-publish channels that have been added to the Channels window and whose General properties have been set. During multi-publishing, the General tab is disabled.

To publish multiple channels, use the procedures outlined above to add the channels and set General properties. When done, use Ctrlt+Click to select the multiple channels that you want to publish or remove. The last channel selected (as noted in the window title) is the anchor channel whose Publish properties are used for all the channels. These properties (e.g. Host Name, Port, etc.) override any properties that were previously assigned to a channel. You can also Preview or Delete multiple channels at once from the Publish tab.

Setting Channel Properties

General Properties

The General tab lets you set a variety of properties that describe the channel's properties and specify how it will be published. All fields are explained in the following table (and in the tool tips). Note that a different pane is displayed depending on whether you are publishing an Application (Java) channel or an HTML channel. Fill in the appropriate fields and enter an optional description as explained in Channel Description. When done click Apply Changes and go to the Publish tab.

General Properties - Java Application Channel Options

As a general rule, channel names must be unique across multiple transmitters. Channels are overwritten if a client points to different transmitters on which the same channel name is published.

General Properties - HTML Channel Options

General Property Value Description Default
Channel Name name* The channel name other than the Visible Name. For flexibility, this name need not match Visible Name that is shown in the Channel Menu.
Visible Name A string that represents the channel in the channel menu and in the Publisher. If omitted, the channel is not shown on the channel menu. If you want to publish two instances of the same channel with different names, publish the same channel with different Visible Names.
Channel Type Application| HTML An Application channel is a Java channel. Choose one.
Location Text string (e.g. logopanel) assigned to a specific panel in the layout. See Client Panels for more details. mainbody
Type content| system| status Panel type. See Client Panels for more details. content
Category category* The category under which the channel is grouped in both the Publisher and in the channel menu. All channels should be assigned to a category.
Autorun True|False If true, the channel is started automatically if subscribed to. False
Mandatory True|False If true, the channel is always subscribed to. The user cannot unsubscribe from the channel. False
Selectable True|False If true, the channel's Visible Name appears in channel menu. If a channel is selectable, a visible name and a channel name are required.
Main Class main* Java channels. Specifies name of class that runs when channel is launched. Do not use .class extension. Generally, this is the class with the channel's start() method.
Classpath Java channels. A colon-separated list of directories and ZIP files to be searched for classes. Also used to publish JAR files with a channel. Enter the JAR filename (relative to the root directory.)
Codebase Java channels. This allows you to alter the default CLASSPATH of the application. The specified pathname is relative to the channel's base directory.
Index Page HTML channels. The initial HTML page to load (e.g. index.html).
Index Source loadmode|** channel| web HTML channels. Indicates the source (local or remote) of an HTML index page. channel loads the page from a local channel e.g. index.html; web loads the page from a remote website e.g. http://index.html.
Use Controls True|False HTML channels. If true, Forward and Backward navigation buttons are displayed.
Adapter Support True|False If true, the channel can access data through an external adapter. If false, it is a standalone channel without access to external data sources. False
update.inactive never| hourly| daily| weekly How often the channel checks for updates when not running. weekly
update.active never| frequently| hourly| daily| weekly How often the channel checks for updates when running. never means the channel is only updated when explicitly directed, either by the user or by another channel. never
update.action ignore| restart| install What action to take if an update becomes available while the channel is running. restart
install.inactive ignore| start| notify What action to take if an update becomes available while the channel is not running. ignore

* Keyword in properties.txt file.
** Keyword in parameters.txt file.

Channel Description

The Channel Description button at the bottom of the General properties window is used to provide a thumbnail description for end users who may want to subscribe to a channel. This description is displayed in the client when you select "Personalize Menu" and click on an available channel. The client shell renders HTML 3.2 tags and you can use this window as an editor to preview what the description will look like in IntelliPortal. When done click Ok and then Apply Changes.

Publish Properties

Use the Publish tab to actually publish channels to the specified transmitter (the Host Name). Just fill in the appropriate fields and click Publish. A "succeeded!" message in the status window indicates that the channel has been successfully published. Use the Preview button to see what files have changed since the channel was last published. Use the Delete button to delete previously published channels. After an update, a deleted channel is no longer available to end users.

Publish Properties

Publish Property Description
Host Name Fully qualified hostname (hostname and domain name) or IP address of the server. Lets you specify the transmitter that publishes the channel.
Port Transmitter port number
Http Proxy Fully qualified hostname (hostname and domain name) or IP address of the Http Proxy if you are running the Publisher from behind a firewall. Must match the proxy host IP address entered during server installation.
Proxy Port Must match the proxy port number entered during server installation.
Ignore Ignore (do not publish) files that include the specified characters. Use with wildcards. Use this field if you are publishing from a development folder that includes extraneous files that you don't want published. If you want to publish the source code with your channel, remove *.java from the list of excluded files.
Proxy Password Optional password for Http Proxy above.
Publisher Password The password that is required to publish a channel to a specified transmitter. Must match the publisher password entered during server installation.
Channel Password An optional password for protected channels. If you set a Channel Password, you must enter that password in order to modify or re-publish the channel. Be aware that if you forget the password, you will not be able to modify or delete the channel.
Publish through SSL Publish the channel with SSL. This must match the transmitter setting. You can only publish a channel with SSL to a transmitter that was configured for SSL during installation.
Publish Publishes the channel.
Preview Previews the publication of a channel. The checksum line in status window shows the pathnames of all files that have changed since the last time the channel was published.
Delete Deletes the channel selected on main window. Removes all associated files from the server so that the channel is no longer published. (It does not affect source files residing elsewhere.)
Cancel Stops a Publish or Delete action that is currently in progress.

Client Update Channel

The "client" or "tuner" update channel (e.g. IntelliPortalClient) is a required system channel that represents a client image of the tuner. This channel is published with the other system (and sample) channels during IntelliPortal installation. The client channel does not play in the tuner; it is simply the current image of the client that is available on the server for distribution. When you perform a client update, you are simply updating the local image of the client with the latest files and updatable tuner components. The updater is designed to support upgrades of the client shell; it also provides a way to add new services and to add jars to the system classpath.

Do not confuse client updates with channel updates. Channel updates update channels. If available, they are automatically performed as a background task whenever you connect to the server (depending on the update properties published with the channel).

When you update the client, you only update those files for which there is a newer version available on the server. This new image is sent to end users who elect to UPDATE! To create a new client update, you need to copy the new files to the channel and then re-publish. When re-publishing, be sure that client.channel and defaulttrans0 tags in the properties.txt file are set correctly.

client.channel Must match the channel name that represents the client image.
defaulttrans0 Must match the transmitter that the channel is published to.

This automatically makes the update available to end users at the update interval specified in the properties file. If the update is not successful, a message is displayed in the Update window below and the last error is written to Update.err in the lib directory.

Update Properties

The are several tags in the configuration files that control the update process. After a successful update, these tags are reset to the defaults shown in the table below. When you exit IntelliPortal for the first time after running the client, update.available is set to true causing the updater to prompt for an update when you re-connect; update.last indicates the date and time of the last successful update; and update.frequency indicates the frequency of future updates.

Property Value Description Default
update.available* true|false Set by the client at shutdown when an update is due. Resets false after a successful update. true
update.last* An internal value, set by the updater, that indicates the date and time of last successful update.
update.frequency** daily| weekly| monthly| never Set at publish time of the client channel. Determines when the updater will check for available updates. weekly
client.channel** The channel name that represents the client image. IntelliPortal

* Keyword in user.ini file.
** Keyword in properties.txt file.

As noted, an update can consist of some or all of the updatable components in the tuner and client code. During an update, end users are prompted for a network setting (see below). If you have not already set up a network connection, instructions for choosing a dialup or LAN connection are available in the IntelliPortal Help system.



[Top] [Prev] [Next] [Bottom]


documentation@mecasw.com
Copyright © 1999, MECA Software L.L.C. All rights reserved.