SAP Inside Track Singapore 2014
Upcoming SlideShare
Loading in...5
×
 

SAP Inside Track Singapore 2014

on

  • 1,040 views

 

Statistics

Views

Total Views
1,040
Views on SlideShare
531
Embed Views
509

Actions

Likes
0
Downloads
2
Comments
0

7 Embeds 509

http://marctan.com 478
http://localhost 14
http://www.marctan.com 13
http://digg.com 1
http://www.linkedin.com 1
http://feedly.com 1
http://rcm.amazon.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

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
  • The SDK contains all the libraries that you needed to compile web applications. It also includes the local server for testing and console client for deployment and server operations.
  • SAP HANA Cloud Platform Tools package enables you to:Develop and deploy Web applicationsConfigure connectivity destinationsView and configure logs and log filesManage user roles and groupsProfile Web applications locallyBuild and adapt Web applications using SAPUI5
  • SAP HANA Cloud Platform console client enables development, deployment and configuration of an application outside the Eclipse IDE as well as continuous integration and automation tasks.
  • by default, SAP HANA Cloud Platform is configured to use SAP ID service as identity provider (IdP), as specified in SAML 2.0. You can configure trust to your custom IdP, to provide access to the cloud using your own user database.
  • platform’s official UI framework. This is now open-source at sap.github.io/openui5/
  • provide relational persistence with JPA and JDBC
  • use it to connect Web applications to Internet, make on-demand to on-premise connections to Java and ABAP on-premise systems and configure destinations to send and fetch e-mail.
  • use the service to store unstructured or semistructured data in your application. It follows the OASIS Content Management Interoperability Services standards @ www.oasis-open.org
  • implement a logging API if you want to have logs produced at runtime
  • use system environment variables that identify the runtime environment of the application. Some of thevariables that you can get are hostname, region, landscape and account name.

SAP Inside Track Singapore 2014 SAP Inside Track Singapore 2014 Presentation Transcript

  • Rapid Prototyping with Grails and HANA Cloud Platform Marc Lester Tan/SAP Mobility Innovation Center, APJ January 11, 2014
  • Agenda HANA Cloud Platform  Overview of HANA Cloud Platform Grails  Overview of Grails  Hello World Demo © 2011 SAP AG. All rights reserved. 2
  • HANA Cloud Platform
  • HANA Cloud Platform • Platform as a Service (PaaS) • Runs on JVM • HANA or MaxDB • Integration with backend systems • Development Tools for Eclipse • Free for Developers © 2011 SAP AG. All rights reserved. 4
  • Development Environment • Platform SDK • Platform Tools • Console Client © 2011 SAP AG. All rights reserved. 5
  • Development Environment • Platform SDK • Platform Tools • Console Client © 2011 SAP AG. All rights reserved. 6
  • Development Environment • Platform SDK • Platform Tools • Console Client © 2011 SAP AG. All rights reserved. 7
  • Platform Services and Utilities • Authentication • SAP UI5 – open-source @ sap.github.io/openui5/ • Persistence Service • Connectivity Service • Document Service • Logging • Cloud Environment Variables © 2011 SAP AG. All rights reserved. 8
  • Platform Services and Utilities • Authentication • SAP UI5 – open-source @ sap.github.io/openui5/ • Persistence Service • Connectivity Service • Document Service • Logging • Cloud Environment Variables © 2011 SAP AG. All rights reserved. 9
  • Platform Services and Utilities • Authentication • SAP UI5 – open-source @ sap.github.io/openui5/ • Persistence Service • Connectivity Service • Document Service • Logging • Cloud Environment Variables © 2011 SAP AG. All rights reserved. 10
  • Platform Services and Utilities • Authentication • SAP UI5 – open-source @ sap.github.io/openui5/ • Persistence Service • Connectivity Service • Document Service • Logging • Cloud Environment Variables © 2011 SAP AG. All rights reserved. 11
  • Platform Services and Utilities • Authentication • SAP UI5 – open-source @ sap.github.io/openui5/ • Persistence Service • Connectivity Service • Document Service • Logging • Cloud Environment Variables © 2011 SAP AG. All rights reserved. 12
  • Platform Services and Utilities • Authentication • SAP UI5 – open-source @ sap.github.io/openui5/ • Persistence Service • Connectivity Service • Document Service • Logging • Cloud Environment Variables © 2011 SAP AG. All rights reserved. 13
  • Platform Services and Utilities • Authentication • SAP UI5 – open-source @ sap.github.io/openui5/ • Persistence Service • Connectivity Service • Document Service • Logging • Cloud Environment Variables © 2011 SAP AG. All rights reserved. 14
  • Grails
  • What is Grails? • Full stack web application framework • Runs on JVM • Open-source @ github.com/grails/grails-core/ • Uses Groovy programming language • Follows Convention-over-Configuration paradigm • Lots and lots of plugins! © 2011 SAP AG. All rights reserved. 16
  • Key Features of Grails • It includes easy to use ORM layer built on Hibernate • Expressive view technology called GSP (Groovy Server Pages) • Controller layer built on Spring MVC • Scripting environment based on Groovy-based Gant • Embedded Tomcat server configured for on-the-fly reloading • DI provided by the built-in Spring container © 2011 SAP AG. All rights reserved. 17
  • Hello World 你好世界 Hallo Welt
  • Simple Web App • Tool to manage Tech Events in Singapore • Develop using Grails • Deploy on Local and Remote HCP • Use MaxDB • Grails on HANA – coming soon! (https://hibernate.atlassian.net/browse/HHH-8228) © 2011 SAP AG. All rights reserved. 19
  • Create the Web Application and Domain Class $ grails create-app TechEvents | Created Grails Application at /Users/i071571/Documents/sapinsidetrack/TechEvents $ grails create-domain-class com.sap.techevents.Event | Created file grails-app/domain/com/sap/techevents/Event.groovy | Created file test/unit/com/sap/techevents/EventTests.groovy © 2011 SAP AG. All rights reserved. 20
  • Modify the Domain Class package com.sap.techevents class Event { String name String description Date eventDate Date dateCreated Date lastUpdated static constraints = { name blank: false description blank: true eventDate blank: false } } © 2011 SAP AG. All rights reserved. 21
  • Build the Controllers, Views and Run the App $ grails generate-controller com.sap.techevents.Event | Packaging Grails application..... | Finished generation for domain class com.sap.techevents.Event $ grails generate-views com.sap.techevents.Event | Compiling 1 source files.... | Finished generation for domain class com.sap.techevents.Event $ grails run-app | Server running. Browse to http://localhost:8080/TechEvents © 2011 SAP AG. All rights reserved. 22
  • Local Testing and Deployment • Add MANIFEST.MF that contains only Manifest-Version: 1.0 • Add _Events.groovy in scripts folder • In _Events.groovy, copy the MANIFEST.MF to staging directory • In _Events.groovy, modify web.xml generation to include JNDI bindings for database • In grails-app/conf/DataSource.groovy, modify the production dataSource to: dbCreate = "update" jndiName = "java:comp/env/jdbc/DefaultDB" dialect = "org.hibernate.dialect.SAPDBDialect" © 2011 SAP AG. All rights reserved. 23
  • Local Testing and Deployment • In grails-app/conf/DataSource.groovy, modify the development dataSource to: dbCreate = "create-drop" // one of 'create', 'createdrop', 'update', 'validate', '' //url = "jdbc:h2:mem:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000" jndiName = "java:comp/env/jdbc/DefaultDB" dialect = "org.hibernate.dialect.DerbyDialect" • Copy com.sap.security.core.server.csi_1.0.1.jar from $HCP_SDK_HOME/repository/plugins to lib folder • $ grails dev war © 2011 SAP AG. All rights reserved. 24
  • Local Testing and Deployment • Install HCP Local Server $ neo.sh install-local • Copy generated WAR file to HCP Local Server pickup folder $ cp target/TechEvents-0.1.war /Applications/Dev/neo-java-web-sdk1.43.20.3/server/pickup/ • Run HCP Local Server $ neo.sh start-local • Monitor log file to check if deployment is successful $ tail -f /Applications/Dev/neo-java-web-sdk-1.43.20.3/server/log/ljs_trace.log © 2011 SAP AG. All rights reserved. 25
  • Local Testing and Deployment • Create a WAR file for Production Environment $ grails prod war • Deploy WAR File to HANA Cloud $ neo.sh deploy -u SCN_USER –a ACCOUNT_NAME -b APP_NAME -h HOST_NAME -s target/TechEvents-0.1.war • Start/Restart Application instance in HCP Cockpit © 2011 SAP AG. All rights reserved. 26
  • Resources • HANA Cloud Portal • HANA Cloud Platform Developer Resources • HCP Content Overview • OpenUI5 • Grails • Groovy • TechEvents Source Code © 2011 SAP AG. All rights reserved. 27
  • Thank You! Marc Lester Tan w: marctan.com