Changing configuration settings for managed applicationsAdded by IBM on February 2, 2011 | Version 1 (Original)
|Communities supports integration with a number of applications, including Confluence Wiki and different types of IBM® Lotus® Quickr™ places. Use the ManagedAppService commands to display and update properties for these applications, which can (optionally) be installed on community servers.
Communities supports integration with a number of applications, including Confluence Wiki and different types of IBM® Lotus® Quickr™ places. Use the ManagedAppService commands to display and update properties for these applications, which can (optionally) be installed on community servers.
Before you begin
To edit configuration files, you must use the IBM WebSphere® Application Server wsadmin client. See Starting the wsadmin client
To set properties for the managed applications configured on Communities servers, complete the following steps.
- Start the wsadmin client from the following directory of the system on which you installed the deployment manager:
You must start the client from this directory or subsequent commands that you enter do not execute correctly. For more information, see Starting the wsadmin client.
- Start the Communities Jython script interpreter using the following command:
- Optional: Use the following command to retrieve a list of the managed applications on your Communities server:
Depending on the managed applications that you have installed on your server, something similar to the following is returned:
- Optional: Use the following command to get a Help list of the configuration settings that can be used for any specified application:
PortalWiki:resourceBundleName resourceBundleName for translated strings
PortalWiki:contentFeedLink name of the contentFeedLink
PortalWiki:enabled Enable place type
PortalWiki:publicRole role for public
PortalWiki:ownersRole role for Community owners
PortalWiki:membersRole role for Community members
PortalWiki:managedApplicationTypeID managed Application Type ID
PortalWiki:placeTemplate place template name
- Check out the Communities configuration files using the following command:
ManagedAppService.checkOutConfig(String "<app>", String "<working_directory>", String "<cell_name>")
- <app> is the name of the managed application, which you can obtain via the ManagedAppService.listApp() command.
- <working_directory> is the temporary working directory to which the configuration XML and XSD files are copied. The files are kept in this working directory while you make changes to them.
- <cell_name> is the name of the WebSphere Application Server cell hosting the Lotus Connections application. This argument is required. It is also case-sensitive, so type it with care.
wsadmin>ManagedAppService.checkOutConfig("QuickrPortalWiki", "c:/TempDir", "LCServerNode01Cell")
- Optional: To view a list of the current properties and their values for the checked-out managed application, use the following command:
Here is an example of what you might see after running this command:
PortalWiki:resourceBundleName = com.ibm.lconn.comm.quickr.resources.QuickrWikiResources
PortalWiki:contentFeedLink = wikis
PortalWiki:name = PortalWiki
PortalWiki:enabled = true
PortalWiki:server = DefaultServer
PortalWiki:publicRole = Readers
PortalWiki:ownersRole = Managers
PortalWiki:membersRole = Editors
PortalWiki:managedApplicationTypeID = QuickrPortalWiki
PortalWiki:placeTemplate = Team Wiki
- To change a managed application configuration setting, use the following command:
ManagedAppService.updateConfig(String "<app>", String "<property>", String "<value>")
- <app> is the name of the managed application.
- <property> is one of the managed application configuration properties that can be edited.
- <value> is the new value with which you want to set that property.
The following commands that can be used to configure managed applications:
ManagedAppService.checkOutConfig(String "<app>", String "<working directory>", String "<cell name>")
Checks out the configuration file for the specified application.ManagedAppService.showConfig(String "<app>")
The working directory must be a directory that already exists.
Lists the configuration settings for the specified application. This command also displays the settings that can be configured.ManagedAppService.updateConfig(String "<app>", String "<property>", String "<value>")
Updates a specific property in the configuration file for the specified application. ManagedAppService.checkInConfig(String "<app>")
Note: Each application has its own set of configuration properties. The listApp method lists the properties for an application.
Checks in the configuration file for the specified application.ManagedAppService.configHelp(String "<app>")
Prints the help messages for the configuration settings that can be set for the specified application.
- Optional: Repeat the previous step once for each property setting that you want to change.
- Optional: Use the ManagedAppService.showConfig command to display the updated settings in the working directory before you check them in.
- When you have finished updating the managed application settings, use the following command to save and apply your changes:
What to do next
Before your changes can take effect, you need to stop and restart the Communities server.
Parent topic: Working with managed applications