Use administrative commands to retrieve lists of forums that you can subsequently manipulate programmatically.
Before you begin
To run administrative commands, you must use the wsadmin client. See Starting the wsadmin client
Parent topic: Administering Forums
- Start the wsadmin client from the following directory of the system on which you installed the Deployment Manager:
is the WebSphere
® Application Server installation directory and <dm_profile_root>
is the Deployment Manager profile directory, typically dmgr01.
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 Forums Jython script interpreter using the following command:
If prompted to specify a service to connect to, type 1 to pick the first node in the list. Most commands can run on any node. If the command writes or reads information to or from a file using a local file path, you must pick the node where the file is stored.
- Use the following commands to retrieve the forums in your organization:
Retrieves a list of all the forums created by your users except those in the trash.ForumsService.fetchForumsByName(java.lang.String forumName)
Retrieves the forum with the specified name.