Watch a Video with a Sample App
Watch this video to see a sample partner community application.
Prepare your Environment
The following instructions assume that IBM Connections is used on IBM Greenhouse in combination with an on-premises IBM Domino server and local IBM Domino Designer.
Everyone can register free accounts to try IBM Connections on IBM Greenhouse. Developers can program against this environment using their accounts and basic authentication but no custom gadgets can be deployed.
Code your first App
Create a new application and configure the ConnectionsBasicEndpoint to the Connections server.
- Click File -> New -> Application.
- Select a server, name the application, and click OK.
- Via the Package Explorer open Faces-config.xml.
- Click the source tab and replace the source content as follows.
<faces-config> <!-- Connections --> <managed-bean> <managed-bean-name>connections</managed-bean-name> <managed-bean-class>com.ibm.sbt.services.endpoints.ConnectionsBasicEndpoint</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> <managed-property> <property-name>url</property-name> <value>https://greenhouse.lotus.com</value> </managed-property> <managed-property> <property-name>authenticationService</property-name> <value>communities/service/atom/communities/my</value> </managed-property> <!-- Trust the connection --> <managed-property> <property-name>forceTrustSSLCertificate </property-name> <value>true</value> </managed-property> </managed-bean> <!--AUTOGEN-START-BUILDER: Automatically generated by IBM Domino Designer. Do not modify.--> <!--AUTOGEN-END-BUILDER: End of automatically generated section--> </faces-config>
- Via the Xsp Properties editor ensure that the application has both the extlib and sbtsdk libraries in its list of dependencies.
Consume the SDK from an XPages application by leveraging the server-side Java APIs.
- Click File -> New -> XPage.
- Name the XPage MySocialXPage and click OK.
- Copy the following content to the page:
To find out what functionality the SDK provides read the Java API documentation. The partner community sample can be downloaded from OpenNTF. A second sample is the trouble ticket application can be downloaded as well. Watch the webinar to learn how to get started with the Social Business Toolkit SDK.