opensap hanacloud1-1 week 2 unit 1 ifswjb presentation

12
Week 2 Unit 1: Introduction and First Steps with EJB May, 2014

Upload: muhammad-nadeem

Post on 03-Jun-2018

220 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

8/12/2019 OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

http://slidepdf.com/reader/full/opensap-hanacloud1-1-week-2-unit-1-ifswjb-presentation 1/12

Week 2 Unit 1: Introduction and

First Steps with EJBMay, 2014

Page 2: OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

8/12/2019 OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

http://slidepdf.com/reader/full/opensap-hanacloud1-1-week-2-unit-1-ifswjb-presentation 2/12

© 2014 SAP AG or an SAP affiliate company. All rights reserved 2Public

Introduction and First Steps with EJBPersistence 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

Page 3: OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

8/12/2019 OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

http://slidepdf.com/reader/full/opensap-hanacloud1-1-week-2-unit-1-ifswjb-presentation 3/12

© 2014 SAP AG or an SAP affiliate company. All rights reserved 3Public

Introduction and First Steps with EJBEasy 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

Page 4: OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

8/12/2019 OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

http://slidepdf.com/reader/full/opensap-hanacloud1-1-week-2-unit-1-ifswjb-presentation 4/12

© 2014 SAP AG or an SAP affiliate company. All rights reserved 4Public

Introduction and First Steps with EJBJava 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

Page 5: OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

8/12/2019 OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

http://slidepdf.com/reader/full/opensap-hanacloud1-1-week-2-unit-1-ifswjb-presentation 5/12

© 2014 SAP AG or an SAP affiliate company. All rights reserved 5Public

Introduction and First Steps with EJBEJB Sample

Makes use of Java EE 6 Web Profile

(SAP HANA Cloud Platform SDK 2.x)

Web container

EJB container

Persistence provider - EclipseLink

DB

PersistenceWithEJBServlet

PersonBean

PersonEclipseLink as 

persistence provider

EJB Container

Web Container

Java EE 6 Web Profile (2.x)

Schemas

JDBC

Page 6: OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

8/12/2019 OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

http://slidepdf.com/reader/full/opensap-hanacloud1-1-week-2-unit-1-ifswjb-presentation 6/12

© 2014 SAP AG or an SAP affiliate company. All rights reserved 6Public

Introduction and First Steps with EJBEJB Sample

Import to Eclipse as

‘Existing Projects into Workspace’

Location:

<SDK_path>\samples\persistence-with-ejb

Page 7: OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

8/12/2019 OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

http://slidepdf.com/reader/full/opensap-hanacloud1-1-week-2-unit-1-ifswjb-presentation 7/12© 2014 SAP AG or an SAP affiliate company. All rights reserved 7Public

Introduction and First Steps with EJBEJB 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

Page 8: OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

8/12/2019 OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

http://slidepdf.com/reader/full/opensap-hanacloud1-1-week-2-unit-1-ifswjb-presentation 8/12© 2014 SAP AG or an SAP affiliate company. All rights reserved 8Public

Introduction and First Steps with EJBEJB 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/

Page 9: OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

8/12/2019 OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

http://slidepdf.com/reader/full/opensap-hanacloud1-1-week-2-unit-1-ifswjb-presentation 9/12© 2014 SAP AG or an SAP affiliate company. All rights reserved 9Public

Introduction and First Steps with EJBEJB Sample

SAP HANA Cloud Platform cockpit

provides the following information in

the ‘Database Schemas ’ view: 

Schema name/ID

Database type

 Application bindings

Page 10: OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

8/12/2019 OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

http://slidepdf.com/reader/full/opensap-hanacloud1-1-week-2-unit-1-ifswjb-presentation 10/12© 2014 SAP AG or an SAP affiliate company. All rights reserved 10Public

Introduction and First Steps with EJBWhat 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 aboutyour schema

Page 11: OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

8/12/2019 OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

http://slidepdf.com/reader/full/opensap-hanacloud1-1-week-2-unit-1-ifswjb-presentation 11/12

Contact information:

[email protected]

Thank you

Page 12: OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

8/12/2019 OpenSAP HANACLOUD1-1 Week 2 Unit 1 IFSWJB Presentation

http://slidepdf.com/reader/full/opensap-hanacloud1-1-week-2-unit-1-ifswjb-presentation 12/12© 2014 SAP AG or an SAP affiliate company. All rights reserved 12Public

 © 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 aff iliated 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 uncertaintiesthat 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.