You are on page 1of 30

CD213

Using Open Source


Frameworks on
SAP NetWeaver

Disclaimer
This presentation outlines our general product direction and should
not be relied on in making a purchase decision. This presentation is
not subject to your license agreement or any other agreement with
SAP. SAP has no obligation to pursue any course of business
outlined in this presentation or to develop or release any
functionality mentioned in this presentation. This presentation and
SAPs strategy and possible future developments are subject to
change and may be changed by SAP at any time for any reason
without notice. This document is provided without a warranty of any
kind, either express or implied, including but not limited to, the
implied warranties of merchantability, fitness for a particular
purpose, or non-infringement. SAP assumes no responsibility for
errors or omissions in this document, except if such damages were
caused by SAP intentionally or grossly negligent.

SAP AG 2007, SAP TechEd 07 / CD213 / 2

Contributing Speaker
Goran Stoiljkovski
Solution Architect, SAP AG

SAP AG 2007, SAP TechEd 07 / CD213 / 3

Learning Objectives
As a result of this lecture, you will be able to:
Understand how to use some best of breed Open Source development
frameworks and products with NetWeaver Java EE technology
Hibernate
Struts
Axis
Ant
Tomcat
Joram
Log4J
Spring

SAP AG 2007, SAP TechEd 07 / CD213 / 4

SAP is Open
Open Source Based Apps on NetWeaver
Key Findings and Recommendations

SAP is Open

SAP AG 2007, SAP TechEd 07 / CD213 / 6

How is SAP Open?


We invite you to join in and learn about

SAP AG 2007, SAP TechEd 07 / CD213 / 7

What Does Openness Mean to SAP


Support of all major
Open Source Java
frameworks

Robustness for
Enterprise
Business
Applications

Openness with
SAP NetWeaver

Benefits for
Developers,
Partners and
Customers
SAP AG 2007, SAP TechEd 07 / CD213 / 8

Support of all major


standards (WS-I,
WS-Management, ..)

SAPs Commitment to Open Source


SAP Global Open Source Office
Established in 2004
Cross-Organizational team to coordinate all Open Source related
activities

Strategic competence hub for our partners


Generate joint concepts and Go-To-Market strategies
Long-term partnership projects

The operational focal point for the field and our customers
Roll-In/Roll-Out from/to customer through SAPs field organization

SAP AG 2007, SAP TechEd 07 / CD213 / 9

Open Development Environment

SAP NetWeaver Developer Studio embeds the

eclipse development framework and extends this


framework with hundreds of plug-ins providing
developers with productivity tools that accelerate
development and increase agility.

SAP is a board member

and major sponsor of the


Eclipse foundation

SAP AG 2007, SAP TechEd 07 / CD213 / 10

SAP Leverages Open Source Internally


SAPs internal development and
services both leverage Open Source
software where appropriate
SAP hosted solutions run Linux
SAPs internal development uses
JUnit
Python
gcc
Ant

SAP AG 2007, SAP TechEd 07 / CD213 / 11

SAP is Open
Open Source Based Apps on NetWeaver
Key Findings and Recommendations

Typical Open Source Development Scenario

Development

Change &
Release
Management

Runtime

Connectivity
& Backend

extensions

Backend
Systems
JMS
Provider
Web
Services

SAP AG 2007, SAP TechEd 07 / CD213 / 13

SAP & Open Source Development Scenario

Development

Change &
Release
Management

Runtime

Connectivity
& Backend

extensions

SAP
Backend
Systems
NetWeaver Development
Infrastructure

Web
Dynpro

JMS
Provider
Web
Services

SAP AG 2007, SAP TechEd 07 / CD213 / 14

Java EE Open Source Based Applications and SAP

Runtime
extensions

Leave your Open Source Based


Application as it is
Deploy the Open Source Libraries

SIMPLE and EASY

SAP AG 2007, SAP TechEd 07 / CD213 / 15

An Example The Employee Management Demo App

An Example Employee Management Demo Application

Deployment

Runtime

View

Controller

Struts JSPs

Struts Actions

Model

Custom Libs

AXIS API
consume

deploy
SAP Deployment
API

Hibernate POJOs

Hosted
Web
Service

SAP Deployment
& ANT API
deploy

Hibernate API
Joram API
AXIS API
Log4J
Helper libs
etc.

send
message

JMS
Destinations

consume
message

App Server
Persistent data
JMS receiver
stand alone client
Employee

SAP AG 2007, SAP TechEd 07 / CD213 / 17

Department

Struts Parts of the Demo Application


Runtime

Struts JSPs as View components


Controller components

View

Controller

Struts JSPs

Struts Actions

Model

Custom Libs

Hibernate POJOs

Hibernate API
Joram API
AXIS API
Log4J
Helper libs
etc.

Struts Web Service Beans


Action Servlets and Action Mappings
Action Form Beans
Action Beans

Deploy struts.jar in the application


context (WEB-INF/lib)
No SAP specific configurations needed

App Server

SIMPLE and EASY

SAP AG 2007, SAP TechEd 07 / CD213 / 18

Hibernate Parts of the Demo Application


Runtime

View

Controller

Struts JSPs

Struts Actions

Model

Custom Libs

Hibernate POJOs

Hibernate API
Joram API
AXIS API
Log4J
Helper libs
etc.

Deploy Hibernate package (Hibernate API


and helper libraries as shared libraries
Deploy your own JDBC driver for the
database you are running at
Deploy your own Data Source with
vendor_sql SQL Support Layer or
native_sql SQL Support Layer

App Server
Persistent data

Employee

Department

SAP AG 2007, SAP TechEd 07 / CD213 / 19

SIMPLE and EASY

Axis Parts of the Demo Application


Runtime
AXIS API

View

Controller

Struts JSPs

Struts Actions

Model

Custom Libs

Hibernate POJOs

Hibernate API
Joram API
AXIS API
Log4J
Helper libs
etc.

consume

Hosted
Web
Service

Deploy the Web Service on Tomcat


Axis API calls are in the Struts parts

App Server

SIMPLE and EASY

SAP AG 2007, SAP TechEd 07 / CD213 / 20

The JORAM Parts of the Demo Application


Runtime
send
message

View

Controller

Struts JSPs

Struts Actions

Model

Custom Libs

Hibernate POJOs

Hibernate API
Joram API
AXIS API
Log4J
Helper libs
etc.
App Server

JMS
Destinations

consume
message

JMS receiver
stand alone client

JORAM API calls are in the Struts parts


Implement your Message Receiver

SIMPLE and EASY


SAP AG 2007, SAP TechEd 07 / CD213 / 21

Deployment of the Demo Application using ANT


Deployment

Runtime

Use an SAP Deployment Client


extensions

Client invocation in an ANT task


Download from SDN

deploy
SAP Deployment
API

Sample Deployment Client Package


Utility Libraries
Sample ANT project

SAP Deployment
& ANT API
deploy

Leverage your existing


build and deployment
infrastructure
SAP AG 2007, SAP TechEd 07 / CD213 / 22

SAP AG 2007, SAP TechEd 07 / CD213 / 23

SAP is Open
Open Source Based Apps on NetWeaver
Key Findings and Recommendations

Summary Key Findings and Recommendations

Deploy Spring libraries as shared libraries whenever


possible. Alternatively put them in WEB-INF/lib

Deploy STRUTS as part of a Web Module within


the application context (WEB-INF/lib)
No SAP specific configurations needed

Use the SAP Deployment API to deploy on NetWeaver


check SDN for download of the deployment clients

KEY FINDING: SAP NetWeaver Application Server is


an open platform for Open Source frameworks
Visit the Java Knowledge Center on SDN

Deploy Hibernate API and required libraries


as shared libraries or a separate application
Configure the DataSource SQL support layer
according to your application needs (e.g.
native_sql)
Using open _sql could collide with Hibernates
primary key generation

Deploy JORAM API within the application


context

Deploy AXIS API within the application


context

https://www.sdn.sap.com/irj/sdn/java

= Recommendation

https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/
uuid/e081a4b6-0801-0010-7fa4-c3c7a0454815

= Note

SAP AG 2007, SAP TechEd 07 / CD213 / 25

SAP NetWeaver, Development Subscription


The SAP NetWeaver, Development Subscription offers
a cost effective total solution for developers to build
applications for the SAP NetWeaver platform.
Subscription gives you one year access to
SAP NetWeaver platform software, patches, and updates
Development license for SAP NetWeaver to evaluate, develop and test
Standard software maintenance
Online sessions from SAP TechEd
Access to SAP Enterprise Services Workplace for testing
Premium presence in forums

Purchase the SAP NetWeaver Development Subscription


today at the TechEd Community Clubhouse, or online at
https://www.sdn.sap.com/irj/sdn/subscriptions
Show us you are a subscriber and get a reward!
SAP AG 2007, SAP TechEd 07 / CD213 / 26

Further Information

SAP Public Web


SAP Developer Network (SDN): www.sdn.sap.com
Java Knowledge Center: https://www.sdn.sap.com/irj/sdn/java J
J2EE Development
J2EE Migration and Third-Party Integration

SAP AG 2007, SAP TechEd 07 / CD213 / 27

Q&A

THANK YOU FOR YOUR


ATTENTION !
QUESTIONS

SAP AG 2007, SAP TechEd 07 / CD213 / 28

SUGGESTIONS

DISCUSSION

Feedback
Please complete your session evaluation.
Be courteous deposit your trash,
and do not take the handouts for the following session.

Thank You !

SAP AG 2007, SAP TechEd 07 / CD213 / 29

SAP Certifications Related to SAP TechEd Topics


Topic

Exam Level

Certificate Title

Solution Basis

ABAP

Professional

SAP Certified Development Professional - ABAP System Interfaces with


SAP NetWeaver 7.0

SAP NetWeaver 7.0

ABAP

Professional

SAP Certified Development Professional - ABAP System Interfaces with


SAP NetWeaver 7.0

SAP NetWeaver 7.0

ABAP

Associate

SAP Certified Development Consultant ABAP Dev with NetWeaver 2004

SAP NetWeaver 2004

ABAP

Associate

SAP Certified Development Associate ABAP with SAP NetWeaver 7.0

SAP NetWeaver 7.0

ADM

Professional

SAP Certified Technology Professional NetWeaver 7.0 Platform

SAP NetWeaver 7.0

ADM

Professional

SAP Certified Technology Professional NetWeaver 7.0 Security

SAP NetWeaver 7.0

ADM

Associate

SAP Certified Technology Associate SAP Web AS Platform with Oracle

SAP NetWeaver 2004

ADM

Associate

SAP Certified Technology Consultant NetWeaver 7.0 SysAd with Oracle

SAP NetWeaver 7.0

BI

Associate

Solution Consultant SAP NetWeaver 04s SAP BI

SAP NetWeaver 7.0

E2E

Associate

SAP Certified E2E Application Management Expert Change Control Mgmt

SAP NetWeaver 7.0

E2E

Associate

SAP Certified E2E Application Management Expert Root Cause Analysis

SAP NetWeaver 7.0

Java

Professional

SAP Certified Development Professional JAVA with NetWeaver 7.0

SAP NetWeaver 7.0

Java

Associate

SAP Certified Development Associate JAVA with NetWeaver 7.0

SAP NetWeaver 7.0

MDM

Associate

SAP Certified Application Associate Master Data Management 5.5 (SP04)

SAP NetWeaver 2004

SM

Associate

Solution Consultant SAP Solution Manager 4.0 Implementation Tools

SAP NetWeaver 7.0

SOA

Associate

SAP Certified Associate Enterprise Architect

Enterprise SOA

XI

Associate

Certification Development Consultant SAP NetWeaver 2004s

SAP NetWeaver 7.0

For a complete listing of certifications, please go to

www.sap.com/services/education/certification
SAP AG 2007, SAP TechEd 07 / CD213 / 30