Limiting the membership size of communities
You can limit the maximum number of members that a community can contain.
Before you begin
To limit community membership size, you must edit the explicitMembershipEntityLimit property in the Communities configuration file using the IBM® WebSphere® Application Server wsadmin client. See Starting the wsadmin client for information about how to start the wsadmin command-line tool.
About this task
You configure the size limit using scripts accessed with the wsadmin client. These scripts use the AdminConfig object available in the WebSphere® Application Server wsadmin client to interact with the Communities configuration file. Changes to these Communities configuration settings require node synchronization and a restart of the Communities server before they take effect.
Procedure
- Start the wsadmin client from the following
directory of the system on which you installed the Deployment Manager:
where app_server_root is the WebSphere® Application Server installation directory and dm_profile_root is the Deployment Manager profile directory, typically dmgr01.app_server_root\profiles\dm_profile_root\bin
You must start the client from this directory or subsequent commands that you enter do not execute correctly.
- Start the Communities Jython script interpreter.
- To change the member limit property, use the following
command:
CommunitiesConfigService.updateConfig("explicitMembershipEntityLimit", "value")
where value is the new membership limit.For example:CommunitiesConfigService.updateConfig("explicitMembershipEntityLimit", "500")