How to use the IBM Social Business Toolkit in Java Applications - SBT Webinar 06/26/13
Upcoming SlideShare
Loading in...5
×
 

How to use the IBM Social Business Toolkit in Java Applications - SBT Webinar 06/26/13

on

  • 2,176 views

How to use the IBM Social Business Toolkit in Java Applications - SBT Webinar 06/26/13 ...

How to use the IBM Social Business Toolkit in Java Applications - SBT Webinar 06/26/13

Video: http://youtu.be/MsHxrccnO28

IBM Social Business Toolkit: http://developer.ibm.com/social

Abstract:
In this webinar you will learn about the Java APIs provided in the IBM Social Business Toolkit SDK. We will demonstrate a samples framework which lets developers see these APIs in action. The webinar will also include demonstrations of some mini applications developed using the IBM Social Business Toolkit. To get started we will show you what options exist to quickly get the SDK running in your local Eclipse IDE. Finally the session will cover how to start using the Java API from within a simple dynamic web application.

Speaker:
Bhavesh Shah, @bhavesh_23
IBM, Social Business Toolkit Lead Developer

Statistics

Views

Total Views
2,176
Views on SlideShare
1,336
Embed Views
840

Actions

Likes
0
Downloads
27
Comments
0

8 Embeds 840

http://heidloff.net 754
http://www.heidloff.net 33
https://twitter.com 30
http://www.youtube.com 14
http://niklasheidloff.wordpress.com 5
http://podidoo.com 2
http://www.365dailyjournal.com 1
http://www-10.lotus.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

How to use the IBM Social Business Toolkit in Java Applications - SBT Webinar 06/26/13 How to use the IBM Social Business Toolkit in Java Applications - SBT Webinar 06/26/13 Presentation Transcript

  • How to use the IBM Social Business Toolkitin Java ApplicationsBhavesh Shah, Lead Developer Social Business Toolkit SDKIBM SBT Webinar 06/26/13
  • © 2013 IBM Corporation2Future Webinars
  • © 2013 IBM Corporation3About MeBased in India Software LabWorking on Social Business Toolkit SDK with team of developers inIndia and Ireland LabsEmail: bhaveshshah@in.ibm.comTwitter: bhavesh_23LinkedIn: http://www.linkedin.com/pub/bhavesh-shah/7/692/637Previous work:● IBM Connections Integration Plugins for Websphere Portal● IBM Connections Integration Plugins for IBM Lotus NotesBhavesh Shah@ bhavesh_23IBM, Social Business Toolkit, Lead Developer
  • © 2013 IBM Corporation4Agenda● IBM Social Business Toolkit Java API● What is it?● Why would I want to use it?● Java API - Key Concepts● Getting started with Java API● Demo steps for setup IDE workspace and write a simple JSP● Demo mini apps based on Java APIs which connect to● IBM Connections● IBM SmartCloud● Other social platforms like Twitter, DropBox.
  • © 2013 IBM Corporation5DisclaimersIBM’s statements regarding its plans, directions, and intent are subject to change orwithdrawal without notice at IBM’s sole discretion.Information regarding potential future products is intended to outline our general productdirection and it should not be relied on in making a purchasing decision.The information mentioned regarding potential future products is not a commitment,promise, or legal obligation to deliver any material, code or functionality. Information aboutpotential future products may not be incorporated into any contract. The development,release, and timing of any future features or functionality described for our products remainsat our sole discretion.Performance is based on measurements and projections using standard IBM benchmarks ina controlled environment. The actual throughput or performance that any user willexperience will vary depending upon many factors, including considerations such as theamount of multiprogramming in the user’s job stream, the I/O configuration, the storageconfiguration, and the workload processed. Therefore, no assurance can be given that anindividual user will achieve results similar to those stated here.
  • © 2013 IBM Corporation6IBM Social Business Toolkit SDK – Java APIJava API – What is it?
  • © 2013 IBM Corporation7Java API - What is it?● Set of Java wrappers on top of● IBM Connections REST API● IBM SmartCloud REST APIJava APIREST Services exposed by SocialPlatformPlatform Support● Standalone JavaApplications● J2EE Applications● IBM Domino
  • © 2013 IBM Corporation8Java API - Key Concepts● Endpoints● Provide an abstraction around the connection to a service● Isolates application code from details of the deployment● Services + Entities● Isolates application code from details of the Social Platform REST API● Common pattern across the SDK JavaScript and Java APIEndpoint : connect toa different serverusing differentauthenticationmechanismUses defaultendpointServiceEntity
  • © 2013 IBM Corporation9Java API – Developers Playground2. Samples Viewer3. Samples Preview1. Samples Navigator
  • © 2013 IBM Corporation10Java API – Social Playground1. Samples Navigator2. Samples Viewer3. Samples Preview
  • © 2013 IBM Corporation11IBM Social Business Toolkit SDK – Java APIJava API – Why would I want to use it ?
  • © 2013 IBM Corporation12Java API – Why would I want to use it ?● Makes development of Social Applications easy and rapid● Abstracts common development chores like● Authentication● Parsing response feeds● Low level networking● Goal is to make SBT one stop shop for all Social ApplicationDevelopment needs● Consolidate Social application development efforts within and acrossenterprises
  • © 2013 IBM Corporation13IBM Social Business Toolkit SDK – Java APIJava API – How do I get started ?
  • © 2013 IBM Corporation14Java – Getting started● IBM Collaboration Quick Start for Social Business● Installing the SDK● On your development machine or an internal server● On IBM Collaboration Quick Start for Social Business● Setting up a development environment● Using stable build downloaded from OpenNTF● Using latest code from GitHub● Creating your first SDK application● Browse existing samples and reuse in your application● Documentation● Samples● API Documentation
  • © 2013 IBM Corporation15IBM Collaboration Quick Start for Social Business● IBM Collaboration Quickstart for Social Business is an IBM SmartCloud™Enterprise image● Quickly get an instance without any installation, hardware, or maintenance● All you need is Internet Access (SSH, SCP, VNC)For more information go here: http://heidloff.net/home.nsf/dx/29.04.2013080743NHE97V.htm
  • © 2013 IBM Corporation16Installing the SDK● Stable builds are available on OpenNTFhttp://ibmsbt.openntf.org/● Includes Tomcat server● Requires Java JRE v6● Sample applications pre-deployed● Configuration for Quick Start● Configuration for Smart Cloud● Setting up a development environment1.Download build and unzip to your sdk folder2.Unzip Tomcat (located in <your sdk folder>sbtsdktomcat) to your tomcat folder3.Set JRE_HOME=<location of your JRE>4.Edit <your tomcat folder>confsbt.propertiesChange qs.renovations.com to your quick start host e.g. vhostNNNN.dc1.on.ca.compute.ihost.comSet OAuth 2.0 for your Quick Start5.Start Tomcat using <your tomcat folder>binstartup.bat
  • © 2013 IBM Corporation17Installing the SDK - sbt.properties● Property file containing configuration settings for Sample Framework● # Connections Basic Endpoint Parameters● connections.url=https://qs.renovations.com:444● connections.authenticationPage=/sbt/loginForm.html?endpoint=connections● connections.authenticationService=communities/service/atom/communities/my● connections.apiVersion=4.0● # Connections OAuth 2.0 Endpoint Parameters● connectionsOA2.url=https://qs.renovations.com:444● connectionsOA2.serviceName=SBTK● connectionsOA2.appId=SBTK● connectionsOA2.consumerKey=SBTK● connectionsOA2.consumerSecret=NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN● connectionsOA2.authorizationURL=https://qs.renovations.com:444/oauth2/endpoint/connectionsProvider/auth● connectionsOA2.accessTokenURL=https://qs.renovations.com:444/oauth2/endpoint/connectionsProvider/token● connectionsOA2.apiVersion=40● # SmartCloud OAuth 1.0 Endpoint Parameters● smartcloud.url=https://apps.na.collabservtest.lotus.com● smartcloud.consumerKey=NNNNNNNNNNNNNNNNNNNNNNNNNNNNN● smartcloud.consumerSecret=NNNNNNNNNNNNNNNNNNNNNNNNNNNNN● smartcloud.requestTokenURL=https://apps.na.collabservtest.lotus.com/manage/oauth/getRequestToken● smartcloud.authorizationURL=https://apps.na.collabservtest.lotus.com/manage/oauth/authorizeToken● smartcloud.accessTokenURL=https://apps.na.collabservtest.lotus.com/manage/oauth/getAccessToken● smartcloud.appId=Social Business Toolkit● smartcloud.apiVersion=4.0
  • © 2013 IBM Corporation18Demo:Setting up a Development Environment and develop a simple JSP● Using a stable build downloaded from OpenNTF● Download and install the SDK● You need to install Eclipse IDE for Java EE Developers● Execute the script to initialize the Eclipse workspace provided in the SDKinitWin.cmd or initLinux.sh or initMacOS.sh● Launch Eclipse and point to the workspaceC:sbtkworkspaceWin or sbtkworkspaceNix● Clean and build all projects● Launch Tomcat and you can now run the sample frameworkhttps://localhost:8443/sbt.sample.web/javascript.jsp
  • © 2013 IBM Corporation19Setting up a Development Environment● Using latest code from GitHub● Install required software (JRE, Eclipse, SDK)● Import required projects● Use File -> Import -> Team -> Team Project Set to import this project set j2ee-projectset.psf● Configure Tomcat server● Configure your own version of Tomcat or the one from the SDK● Add All projects to Tomcat● In Project Explorer open Servers -> Tomcat v7.0 Server at localhost-config● Add sbt.properties and keystore from SDK Tomcat to that directory● Edit context.xml and add this line:<Resource name="url/ibmsbt-sbtproperties" auth="Container" type="java.net.URL"factory="com.ibm.commons.runtime.naming.UrlFactory" url="sbt.properties" />● Edit server.xml and modify the SSL Connection to be this:<Connector SSLEnabled="true" clientAuth="false" keystoreFile="conf/keystore"keystorePass="passw0rd" maxThreads="150" port="8443" protocol="HTTP/1.1"scheme="https" secure="true" sslProtocol="TLS"/>● Start Tomcat and go Toolkit Sampleshttps://localhost:8443/sbt.sample.web/
  • © 2013 IBM Corporation20Java API - Demonstrations● Demonstrate mini applications using Java APIs1) Enterprise updates sample app demonstrates how Java APIs can be used to aggregateupdates from diverse platforms like Connections ActivityStreams & Twitter2) DropBox App : Showcases how to achieve DropBox integration using the SBT Java APIs
  • © 2013 IBM Corporation21Resources and Questions● Home page: http://ibmdw.net/social● SDK: http://ibmsbt.openntf.org● GitHub: https://github.com/OpenNTF/SocialSDK● StackOverflow: #ibmsbt● Twitter: @ibmsbt● YouTube: http://youtube.com/ibmsbt● Playground: http://bit.ly/sbtplayground● API Doc: SBT Java API Documentation
  • © 2013 IBM Corporation22Acknowledgements and Disclaimers© Copyright IBM Corporation 2013. All rights reserved.– U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract withIBM Corp.IBM, the IBM logo, ibm.com, Rational, the Rational logo, Telelogic, the Telelogic logo, Green Hat, the Green Hat logo, and other IBMproducts and services are trademarks or registered trademarks of International Business Machines Corporation in the United States,other countries, or both. If these and other IBM trademarked terms are marked on their first occurrence in this information with atrademark symbol (® or ™), these symbols indicate U.S. registered or common law trademarks owned by IBM at the time this informationwas published. Such trademarks may also be registered or common law trademarks in other countries. A current list of IBM trademarks isavailable on the Web at “Copyright and trademark information” at www.ibm.com/legal/copytrade.shtmlOther company, product, or service names may be trademarks or service marks of others.Availability: References in this presentation to IBM products, programs, or services do not imply that they will be available in allcountries in which IBM operates.The workshops, sessions and materials have been prepared by IBM or the session speakers and reflect their own views. They areprovided for informational purposes only, and are neither intended to, nor shall have the effect of being, legal or other guidance oradvice to any participant. While efforts were made to verify the completeness and accuracy of the information contained in thispresentation, it is provided AS-IS without warranty of any kind, express or implied. IBM shall not be responsible for any damages arisingout of the use of, or otherwise related to, this presentation or any other materials. Nothing contained in this presentation is intended to,nor shall have the effect of, creating any warranties or representations from IBM or its suppliers or licensors, or altering the terms andconditions of the applicable license agreement governing the use of IBM software.All customer examples described are presented as illustrations of how those customers have used IBM products and the results theymay have achieved. Actual environmental costs and performance characteristics may vary by customer. Nothing contained in thesematerials is intended to, nor shall have the effect of, stating or implying that any activities undertaken by you will result in any specificsales, revenue growth or other results.