For multiple instances of service endpoints, for example if you have partitioning of work on two clusters, and you want to have widgets showing data from each cluster, you must enable the additional widgets manually for each additional cluster. You must edit two files: the endpoints file, which registers endpoints with Business Space, and the widget metadata file, which contains definitions of widgets.
In a deployment environment, you can have partitioning of work. For example, you can have two clusters, one that processes accounting data and one that processes insurance data. However, a service endpoint serves only one cluster. To access both partitions of work from Business Space, you must register two separate widgets, one for each partition of work, so you can access them both from Business Space. For example, you could have an Account Human Task List widget and an Insurance Task List widget in the catalog (both with the same actual human task list code).
If you want to configure multiple instances of the same REST service endpoint, you must manually edit the endpoints file and the widgets metadata file.
Both the endpoint registration files and the widget metadata files are located in the registryData directory for Business Space in the directory you created for your profile.
The directory install_root/BusinessSpace/registryData/ contains endpoint and widget definition template files for your product. You can copy the definition files that you need to use as a template and add your changes. The files in your profile directory, profile_root/profiles/profile_name/BusinessSpace/registryData/, on all the nodes for the cluster where the Business Space server is running, contain the endpoint and widget metadata definitions that are currently registered with the Business Space server.
If you are creating an additional instance of a widget, complete the following steps.
<tns:Endpoint> <tns:id>{com.ibm.bpm}HTM</tns:id> <tns:type>{com.ibm.bpm}HTM</tns:type> <tns:version>6.2.0.0</tns:version> <tns:url>rest/bpm/htm</tns:url> <tns:name>Location of backing services for HTM widgets</tns:name> <tns:description>Location of backing services for HTM widgets </tns:description> </tns:Endpoint>
<tns:Endpoint> <tns:id>{com.ibm.bspace.htm}bspaceTeamTaskListWidgetRootId2</tns:id> <tns:type>{com.ibm.bspace.htm}bspaceTeamTaskListWidgetRootId2</tns:type> <tns:version>1.0.0.0</tns:version> <tns:url>BSpaceWidgetsWPS2/</tns:url> <tns:name>Location of widget resources for 2nd HTM widgets</tns:name> <tns:description>Location of widget resources for 2nd HTM widgets </tns:description> </tns:Endpoint>
<tns:Widget> <tns:id>{com.ibm.bspace.widget}teamTaskList</tns:id> <tns:version>1.0.0.0</tns:version> <tns:name>My Team's Tasks</tns:name> <tns:type>{com.ibm.bspace}iWidget</tns:type> <tns:description>This widget displays tasks that have been assigned to people within your team.</tns:description> <tns:tooltip>My Team's Tasks</tns:tooltip> <tns:categoryId>{com.ibm.bspace}tasks</tns:categoryId> <tns:widgetEndpointId> {com.ibm.bspace.htm}bspaceTeamTaskListWidgetRootId2 </tns:widgetEndpointId> <tns:url>iWidget/widgets/ttlist/TeamTaskList_iWidget.xml </tns:url> <tns:helpUrl>bspace_help/widget_help/help.jsp?page=myteamstasks.html </tns:helpUrl> <tns:iconUrl>com/ibm/bspace/widgets/ttlist/themes/images/ icon_teamtasks.gif</tns:iconUrl> <tns:previewUrl>com/ibm/bspace/widgets/ttlist/themes/images/ prev_teamtasks.gif</tns:previewUrl> <tns:previewThumbnailUrl>com/ibm/bspace/widgets/ttlist/themes/ images/thumb_teamtasks.gif</tns:previewThumbnailUrl> <tns:owner>International Business Machines Corp.</tns:owner> <tns:email>TBD</tns:email> <tns:serviceEndpointRef required="true"> <tns:name>serviceUrlRoot</tns:name> <tns:refId>{com.ibm.bpm}HTMinsurance</tns:refId> <tns:refVersion>6.1.2.0</tns:refVersion> </tns:serviceEndpointRef> <tns:serviceEndpointRef required="false"> <tns:name>userImageServiceUrlRoot</tns:name> <tns:refId>{com.ibm.bspace.htm}bspaceUserImageServiceRootId </tns:refId> <tns:refVersion>1.0.0.0</tns:refVersion> </tns:serviceEndpointRef> <tns:serviceEndpointRef required="true"> <tns:name>monitorServiceRoot</tns:name> <tns:refId>{com.ibm.wbimonitor}monitorServiceRootId</tns:refId> <tns:refVersion>1.0.0.0</tns:refVersion> </tns:serviceEndpointRef> <tns:serviceEndpointRef required="true"> <tns:name>vmmServiceUrlRoot</tns:name> <tns:refId>{com.ibm.bpm}VirtualMemberManager</tns:refId> <tns:refVersion>6.2.0.0</tns:refVersion> </tns:serviceEndpointRef> </tns:Widget>
Set up security for Business Space.