Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • IBM Connections wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search

Categories

Tag Cloud

  • 1.0
  • 1.0.x
  • 2.0
  • 2.0.1
  • 2.0.1.1
  • 2.0_media
  • 2.5
  • 2.5_deployment
  • 2.5_media
  • 2.5_performance
  • 3
  • 3.0
  • 3.0.1
  • 3.0.1_media
  • 3.0_media
  • 3_deployment
  • 8.1.1
  • 8.2
  • activities
  • administrators
  • api
  • best_practices
  • blogs
  • bookmarks
  • business_card
  • cluster
  • communities
  • community
  • community_manager
  • connections
  • connections_3
  • connections_301
  • customization
  • customize
  • customizing
  • demos
  • deploying
  • deployment
  • deployments
  • developers
  • dogear
  • Domino
  • Edge server
  • education
  • error messages
  • files
  • forums
  • getting_started
  • Help
  • home
  • home_page
  • homepage
  • how-to
  • HTTP server
  • ibm
  • index
  • installation
  • integration
  • iOS
  • ipad
  • iWidget
  • J2EE
  • javadoc
  • lc3.0
  • learning
  • lotus-connections
  • mml
  • mobile
  • Notes
  • performance
  • person_card
  • Portal
  • portlet
  • portlet_factory
  • profiles
  • proxy server
  • quickr
  • Redbooks
  • rest
  • reverse proxy server
  • Sametime
  • scenarios
  • search
  • security
  • self-paced
  • SSO
  • tags
  • test_infrastructure
  • troubleshooting
  • tuning
  • video
  • VideoFest
  • videos
  • WAI
  • WAS
  • web_seminar
  • WebAppIntegrator
  • WebSphere
  • widgets
  • wikis
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > IBM Redbooks: Customizing IBM Connections 3.0.1 > 10.6 The Office Supplies application sample code
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

10.6 The Office Supplies application sample code 

expanded Abstract
collapsed Abstract
No abstract provided.
ShowTable of Contents
HideTable of Contents
  • 1 Import the Sample application
  • 2 Quick validation check
  • 3 Edit configuration variables
  • 4 Import SSL certificate from IBM Connections server
  • 5 Run the sample
Previous

This topic contains the Office Supplies sample code and the sample installation instructions. The Office Supplies sample code is written for IBM Web Experience Factory 7.0.1 and is configured to run on either IBM WebSphere Application Server Community Edition (WAS CE) that comes pre-installed with Web Experience Factory or with IBM WebSphere Portal 7.0.

To run the Sample, you have to complete the following tasks:
  • Import the Sample application.
  • Quick validation check.
  • Edit configuration variables.
  • Import SSL certificate from the IBM Connections server.
  • Run the Sample.

Import the Sample application

  1. If you are not planning to connect to a Portal server, download OfficeSupplies.zip. Otherwise, download OfficeSuppliesPortlet.zip. Both these zip files are attached to this article.
  2. Create a WebSphere Portlet Factory project (refer to10.1 Office supplies IBM Web Experience Factory project if you are running it without a portal or 10.5 Deploying to the Portal Server for a portal server configuration).
  3. Right-click the project and select Import -> WebSphere Portlet Factory Archive from the context menu (see the following figure).
  4. Click Finish.
The sample is now imported.

Quick validation check


This is a quick check on one part of the sample that does not link to IBM Connections. It proves the IBM Web Experience Factory and WAS CE are working.
  1. Expand the OfficeSupplies project in the Project Explorer, and navigate to OfficeSuppliesProvider.model.
  2. Right click OfficeSuppliesProvider.model, and Run As --> Run active model .
  3. You should see the results shown below. Click the getSupplies link.

    If you see these results, Web Experience Factory and WebSphere Community Edition are running correctly.


Edit configuration variables


The sample needs configuring to link to your IBM Connections server and your blog.
  1. Expand the OfficeSupplies project in the Project Explorer, and navigate to Office Supplies --> Models --> ConnectionConfigData.model --> server_info.properties.
  2. Right click server_info.properties and Open.
    Modify the variables shown to reflect your environment.
    Note that the URL must start with https:// .
  3. Save the properties file.

Import SSL certificate from IBM Connections server


The Blogs API requires that the HTTPS protocol is used to POST data. (The password is transmitted in our example so HTPS is an advantage!)
This example assumes you are running the WAS CE server on Windows.
  1. Stop the WAS CE server by clicking the Windows Start Menu -> IBM WebSphere -> Application Server Community Edition -> Stop the server.
    When prompted, enter the user name and password for the server (the default user name is "system" and password is "manager").
  2. Extract the SSL certificate from your HTTP server "in front" of your IBM Connections WAS Server.
    If you are not using an HTTP server, extract the SSL certificate directly from WAS where IBM Connections is running.
    In this example, the extracted file is called social_cert.arm.
  3. Copy this certificate file to the following directory:
    C:\IBM\Portlet Factory\WASCE\jre\lib\security
  4. Open a command prompt window and change directory to same security folder
    cd C:\IBM\Portlet Factory\WASCE\jre\lib\security
  5. Issue the command to import and trust the certificate:
    "C:\IBM\Portlet Factory\WASCE\jre\bin\keytool" -import -trustcacerts -alias social -keystore cacerts -file social_cert.arm
    (The default password on the keystore is "changeit").
  6. Start the WAS CE Server.

Run the sample


This is a quick check on one part of the sample that does not link to IBM Connections. It proves the Web Experience Factor and WebSphere Community Edition are working.
  1. Start the WAS CE.
  2. Expand the OfficeSupplies project in the Project Explorer, and navigate to OfficeSupplies.model.
  3. Right click OfficeSuppliesProvider.model, and Run As --> Run active model.


    You should see the results as shown in 10.0 IBM Web Experience Factory.


Parent topic: 10.0 IBM Web Experience Factory

expanded Article information
collapsed Article information
Category:
IBM Redbooks: Customizing IBM Connections 3.0.1
Tags:
Redbooks

This Version: Version 5 November 24, 2011 11:11:47 AM by Robert Thatcher  IBMer

expanded Attachments (2)
collapsed Attachments (2)

 


File TypeSizeFile NameCreated On
application/x-zip 171 KB OfficeSupplies.zip 11/21/11 1:48 PM
application/x-zip 182 KB OfficeSuppliesPortlet.zip 11/21/11 1:48 PM
expanded Versions (5)
collapsed Versions (5)
Version Comparison     
Version Date Changed by               Summary of changes
This version (5) Nov 24, 2011 11:11:47 AM Robert Thatcher  
4 Nov 22, 2011 4:28:33 PM Stephen Smith  
3 Nov 21, 2011 4:24:49 PM Whei-Jen Chen  
2 Nov 21, 2011 2:24:59 PM Amanda J Bauman  
1 Nov 21, 2011 1:48:56 PM Amanda J Bauman  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use