Week 2 Unit 1: Introduction and First Steps with EJB January, 2015
Persistence as a Service Manages the database systems in the cloud and the access to them Operations on database system level Monitoring and alerting Load balancing and scaling Backup and recovery Configuration Metering Application data isolation 2014 SAP AG or an SAP affiliate company. All rights reserved Public 2
Easy Consumption Standards-based access JDBC JPA 2.0 Choice of database platform SAP HANA SAP MaxDB Apache Derby (for local development) Schema management One schema per application (default) Many applications sharing one schema One application using many schemas Schema management available in cockpit 2014 SAP AG or an SAP affiliate company. All rights reserved Public 3
Java Persistence API (JPA) Describes management of relational data in applications Replaces persistence solution for EJB 2.0 CMP Default support in SAP HANA Cloud Platform runtimes for JPA 2.0 2014 SAP AG or an SAP affiliate company. All rights reserved Public 4
EJB Sample Makes use of Java EE 6 Web Profile (SAP HANA Cloud Platform SDK 2.x) Web container EJB container Persistence provider - EclipseLink Java EE 6 Web Profile (2.x) PersistenceWithEJBServlet Web Container PersonBean EJB Container Person EclipseLink as persistence provider JDBC DB Schemas 2014 SAP AG or an SAP affiliate company. All rights reserved Public 5
EJB Sample Import to Eclipse as Existing Projects into Workspace Location: <SDK_path>\samples\persistence-with-ejb 2014 SAP AG or an SAP affiliate company. All rights reserved Public 6
EJB Sample Building Blocks: Person.java persistence entity PersonBean.java stateless bean persistence.xml JPA configuration file PersistenceWithEJBServlet.java provides interaction with end users web.xml Web application descriptor 2014 SAP AG or an SAP affiliate company. All rights reserved Public 7
EJB Sample Run the sample Run on Server Configure SAP HANA Cloud Server hanatrial.ondemand.com Request URL https://<application_name><account_name>.ha natrial.ondemand.com/persistence-with-ejb/ 2014 SAP AG or an SAP affiliate company. All rights reserved Public 8
EJB Sample SAP HANA Cloud Platform cockpit provides the following information in the Database Schemas view: Schema name/id Database type Application bindings 2014 SAP AG or an SAP affiliate company. All rights reserved Public 9
What You ve Learned in This Unit The role of Persistence Service on SAP HANA Cloud Platform The supported database platform types How applications can store data in a database in the cloud JPA, and how it is supported on SAP HANA Cloud Platform What a persistence-enabled EJB application looks like Where to find information about your schema 2014 SAP AG or an SAP affiliate company. All rights reserved Public 10
Contact information: open@sap.com
2014 SAP AG or an SAP affiliate company. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG or an SAP affiliate company. SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG (or an SAP affiliate company) in Germany and other countries. Please see http://global12.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and notices. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. National product specifications may vary. These materials are provided by SAP AG or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP AG or its affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP AG or SAP affiliate company products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. In particular, SAP AG or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop or release any functionality mentioned therein. This document, or any related presentation, and SAP AG s or its affiliated companies strategy and possible future developments, products, and/or platform directions and functionality are all subject to change and may be changed by SAP AG or its affiliated companies at any time for any reason without notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forward-looking statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place undue reliance on these forward-looking statements, which speak only as of their dates, and they should not be relied upon in making purchasing decisions. 2014 SAP AG or an SAP affiliate company. All rights reserved Public 12