Social Enterprise Java Apps

Report 8 Downloads 140 Views
Social Enterprise Java Apps

Safe Harbor Statement Safe harbor statement under the Private Securities Litigation Reform Act of 1995. This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward looking-statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services. The risks and uncertainties referred to above include - but are not limited to - risks associated with developing and delivering new functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of intellectual property and other litigation, risks associated with possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling nonsalesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-Q for the most recent fiscal quarter ended. This documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site. Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.

@forcedotcom , #forcewebinar, @Heroku, @anand_bn, @_JamesWard

Developer Force Group

facebook.com/forcedotcom facebook.com/heroku

Developer Force – Force.com Community

Anand B Narasimhan Senior Product Manager, Heroku [email protected] @anand_bn

James L Ward Principal Developer Evangelist, Heroku [email protected] @_JamesWard

- Paul Cheesbrough CIO, News International

In this webinar…  What is a “Social Enterprise App”  Heroku – a short intro  Hands on with Java on Heroku

 Building a Social Enterprise Heroku app  Coming soon to an IDE near you  Q&A

The Social Enterprise Customer Social Network

Social Profile

Collaborate

Market

Work

Service

Extend

Sell

Market = Engage = Heroku

5 Years Ago Static, Passive Marketing

Today Relevant, Active Marketing

What are the building blocks of a Social Enterprise App ?

Enterprise Apps Failover, App Server Clustering, Load Availability Admins, Network Balancers, SSL Admins Domains

YOUR APP App crashes, Alerts, Logs mining

Servers: Web Servers, App Servers, Database servers etc

Visibility

Infrastructure

Ops, Production support

System Admins, App server Admins, DBAs

DR,Rollback, DBAs, Redundancy Replication System Admins

Forget Servers

$ heroku create

Run Anything

worker: java –jar ..

See Everything

$heroku logs --tail

Trust & Manage

$heroku ps

User • •

Web browser Acces API access

http(s)

Heroku Architecture

Elastic Load Balancing

Code •Java •… Deploy •GIT Manage •Heroku CLI •Scaling •Monitoring

REST

Control Surface APIs

Developer

Social Enterprise App Architecture Polyglot & Open

Process Model

Social API

Real time Visibiility

Data API

Addons

Metadata API

Access Management

Identity

Profiles

Permissions

Record-Level Filtering

Data

Business Data

Metadata

Files

Getting started with Spring MVC app on Heroku ( http://java.heroku.com )

DEMO / HANDS ON

Building a Social Enterprise App With Heroku and Salesforce.com

Integrating with Salesforce.com

1.Setup OAuth 2.Update dependencies 3.Switch Entity to JSON 4.Switch DAO to Force REST API 5.Switch Spring Config to Force REST + OAuth

6.Add Servlet Filter for Oauth 7.Add Oauth Keys to the environment

Dyno 1. Build 2. Slug Compile 3. Deploy to Dyno

Embedded Container

WAR $ git push heroku

Dependencies

pom.xml $ mvn install

Your code

Under the

Spring MVC app With Heroku & Salesforce.com And Chatter APIs

What’s possible… Social Feeds, Recommendations

Real time/ Push Notifications

Social Enterpris e App

Streaming Data

Analytics

Java

is GA

Heroku Labs • WAR deployment (http://bit.ly/war-deploy ) • Jenkins plugin for Heroku(http://bit.ly/heroku-ci )

• Heroku.jar- Java Wrapper (http://bit.ly/herokujar )

• Atlassian Bamboo plugin for Heroku (Email [email protected] for more details)

you can try these out now.

We would love your feedback

Coming Soon +

=

like

Coming Soon All day

HEROKU ENTERPRISE DEVELOPER WORKSHOP Email [email protected] if you are interested

Resources  Getting Started 

http://java.heroku.com



http://bit.ly/heroku-java

 Toolbelt (http://toolbelt.herokuapp.com )  Heroku Dev Center : http://devcenter.heroku.com  Heroku Add-ons: http://addons.heroku.com  Git: http://help.github.com/  Webinar Source code: 

Spring MVC - Force.com : http://bit.ly/KZB68y



Chatter - http://bit.ly/KgMlPP



Pusher integration - http://bit.ly/KMVInx

Upcoming Events



June 12 – Visualforce CodeTalk

 http://bit.ly/codetalkheroku



June 13 – How Salesforce.com Uses Hadoop Webinar

 http://bit.ly/hadoopheroku



June 26 – Mobile CodeTalk

 http://bit.ly/mct-wr

Survey: http://bit.ly/herokujavasurvey

Heroku Devcenter: http://devcenter.heroku.com

James Ward @_JamesWard Developer Evangelist at Heroku [email protected]

Anand Narasimhan @anand_bn Sr. Product Manager at Heroku [email protected]

SFDC Integration Steps

APPENDIX

1. Setup OAuth

i.

Salesforce.com > Setup > Develop > Remote Access

ii. Add Remote Access for Dev & Prod • •

Dev Callback URL: http://localhost:8080/_auth Prod Callback URL: https://some-app-1234.herokuapp.com/_auth

2. Update dependencies force-rest-api force-rest-api repository on GitHub http://jesperfj.github.com/force-rest-api/repository/

2. Update dependencies <dependency> com.force.api <artifactId>force-rest-api 0.0.15 <dependency> com.force.sdk <artifactId>force-oauth 22.0.8-BETA <dependency> com.force.sdk <artifactId>force-springsecurity 22.0.8-BETA

3. Switch Entity to JSON @JsonIgnoreProperties(ignoreUnknown=true) public class Person { @JsonProperty(value="Id") private String id;

@JsonProperty(value="FirstName") private String firstName; @JsonProperty(value="LastName") private String lastName;

4. Switch DAO to Force REST API private ForceApi getForceApi() { SecurityContext sc = ForceSecurityContextHolder.get(); ApiSession s = new ApiSession(); s.setAccessToken(sc.getSessionId()); s.setApiEndpoint(sc.getEndPointHost()); return new ForceApi(s); } // Add Contact getForceApi().createSObject("contact", person);

// Query Contacts getForceApi().query("SELECT Id FROM contact", Person.class); // Delete Contact getForceApi().deleteSObject("contact", id);

5. Spring Config + OAuth

<security:http use-expressions="true"> <security:intercept-url pattern="/people/*" access="isAuthenticated()" />

<property name="redirectHttp10Compatible" value="false" />

6. Add Servlet Filter for Oauth springSecurityFilterChain org.springframework.web.filter.DelegatingFilterProxy <param-name>contextAttribute <param-value> org.springframework.web.servlet.FrameworkServlet.CONTEXT.spring springSecurityFilterChain /*

7. Add Oauth Keys export OAUTH_CLIENT_KEY=CQ3gmEE53MVG99OxTyEMal8ytj1E3NF7... export OAUTH_CLIENT_SECRET=0905539091246761180 heroku config:add OAUTH_CLIENT_KEY=CQ3gmEE53MVG99OxTyEMal8yt... heroku config:add OAUTH_CLIENT_SECRET=0905539091246761180

Recommend Documents