Get a list of forums
Use administrative commands to retrieve lists of forums that you can subsequently manipulate programmatically.
Before starting
To run administrative commands, use the wsadmin client. See Starting the wsadmin client for details.
Procedure
- From the dmgr host:
cd $DMGR_PROFILE/bin
./wsadmin.sh -jython
execfile("forumsAdmin.py")
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, pick the node where the file is stored.
- Use the following commands to retrieve the forums in your organization:
ForumsService.fetchForums()
ForumsService.fetchForumsByName(java.lang.String forumName)
Retrieves the forum with the specified name.
For example:
ForumsService.fetchForumsByName("My Forum")
Parent topic
Administer Forums
});