java programming with sap web application server€¦ · logic integration logic business logic...
TRANSCRIPT
1
SAP TechEd ‘04
Java Programming with SAP Web Application Server
Carsten Brandt / Daniel Stollenwerk
© SAP AG 2004, SAP TechEd / JAVA251/ 2
Agenda
SAP’s Environment for Java Development
Traveling from Database Layer to Client Layer� Persistence Layer� Business Layer� Integration Layer� Presentation Layer
SAP NetWeaver Portal
Summary
2
SAP TechEd ‘04
© SAP AG 2004, SAP TechEd / JAVA251/ 3
SAP NetWeaver Developer Workplace
SAP’s Environment for Java Development
SAP NetWeaver Application Server
SAP J2EE Engine
WebServicesRuntime
WebDynproRuntime
AdobeDocument
Services
Data baseAccessLayer
OpenSQL
� Full J2EE support� Clustering� Easy Deployment
Local File System
SAP NetWeaver Developer Studio
Java J2EE
WebServices
JavaDictionary SQLJ
WebDynpro
SAP Integration Layer
Plugin Framework
XML
Deploy
� Comprehensive IDE� Graphical Tools� Based on Eclipse
Save
SAP J2EE Engine
SAP NetWeaver Development Infrastructure
SAP J2EE Engine
Deploy
Design TimeRepository
(DTR)
ComponentBuild
Service (CBS)
Change ManagementService (CMS)
� Componentize projects� Check dependencies� Synchronize large teams� Full software life-cycle
Save
Sync
© SAP AG 2004, SAP TechEd / JAVA251/ 4
Agenda
SAP’s Environment for Java Development
Traveling from Database Layer to Client Layer� Persistence Layer� Business Layer� Integration Layer� Presentation Layer
SAP NetWeaver Portal
Summary
3
SAP TechEd ‘04
© SAP AG 2004, SAP TechEd / JAVA251/ 5
Event Evaluation Demo
© SAP AG 2004, SAP TechEd / JAVA251/ 6
Event Evaluation Architecture
DB
PresentationLogic
IntegrationLogic
BusinessLogic
PersistenceLogic
AdobeDcumentServices EducationDataServices
DataAccessObjects
EducationDataBeans
SchedulerApplication AttendeeApplication Web Dynpro
Web Services
EnterpriseJava
Beans
SQLJ
4
SAP TechEd ‘04
© SAP AG 2004, SAP TechEd / JAVA251/ 7
Java Dictionary
Create elementary types, structures, and database tables
Supported� DB index� Table buffer� Global namespace (Name Server)� Data types
Benefits� Enables database independency� SQLJ is based on JDIC � Included in Web Dynpro� Open SQL features
© SAP AG 2004, SAP TechEd / JAVA251/ 8
Java Dictionary Perspective
5
SAP TechEd ‘04
© SAP AG 2004, SAP TechEd / JAVA251/ 9
Open SQL for Java
Open SQL Engine^
Open SQL / JDBC
Open SQL / SQLJ
JDO
EJB (CMP)
SQL Trace
Statement Cache
Table Buffer
Table Catalog
Native SQL/ JDBC
Vendor A JDBC Vendor B JDBC
Database B
. . .
Database A
Relational Persistence (SQL) Object Relational PersistenceDatabaseindependency� Open SQL
Development support� Syntax check during
implantation
Performance enhancements� Server side Table Buffer� SQL Statement Cache� SQL Trace
Open SQL Engine
© SAP AG 2004, SAP TechEd / JAVA251/ 10
SQLJ Editor
6
SAP TechEd ‘04
© SAP AG 2004, SAP TechEd / JAVA251/ 11
Event Evaluation Architecture
DB
PresentationLogic
IntegrationLogic
BusinessLogic
PersistenceLogic
AdobeDcumentServices EducationDataServices
DataAccessObjects
EducationDataBeans
SchedulerApplication AttendeeApplication Web Dynpro
Web Services
EnterpriseJava
Beans
SQLJ
© SAP AG 2004, SAP TechEd / JAVA251/ 12
Java Dictionary and J2EE Project Types
EducationDataModelWeb(Web Module Project)
DeploymentDescriptors
WAR
EducationDataModelEjb(EJB-Module Project)
EJB-JAR
EducationDataModelEar(Enterprise Appl. Project)
EARDeploy
SAP
Web
App
licat
ion
Serv
er
EducationDataModelDic(DictionaryProject)
Central Types & Tables
SDA
xml / xdp / jpg .
DeployTabl
eEJ
BW
eb
EJB .
DeploymentDescriptors
DeploymentDescriptors
7
SAP TechEd ‘04
© SAP AG 2004, SAP TechEd / JAVA251/ 13
J2EE Perspective
© SAP AG 2004, SAP TechEd / JAVA251/ 14
Event Evaluation Architecture
DB
PresentationLogic
IntegrationLogic
BusinessLogic
PersistenceLogic
AdobeDcumentServices EducationDataServices
DataAccessObjects
EducationDataBeans
SchedulerApplication AttendeeApplication Web Dynpro
Web Services
EnterpriseJava
Beans
SQLJ
8
SAP TechEd ‘04
© SAP AG 2004, SAP TechEd / JAVA251/ 15
Web Service Wizard
© SAP AG 2004, SAP TechEd / JAVA251/ 16
Web Service Test Page
9
SAP TechEd ‘04
© SAP AG 2004, SAP TechEd / JAVA251/ 17
Event Evaluation Architecture
DB
PresentationLogic
IntegrationLogic
BusinessLogic
PersistenceLogic
AdobeDcumentServices EducationDataServices
DataAccessObjects
EducationDataBeans
SchedulerApplication AttendeeApplication Web Dynpro
Web Services
EnterpriseJava
Beans
SQLJ
© SAP AG 2004, SAP TechEd / JAVA251/ 18
Interactive Forms Solution - Scenarios
Browser withAdobe Reader plug-in
SAP
Web
App
licat
ion
Serv
er
Adobe Reader offline
save
Archive
Online interactive forms� Full integration into Java Web Dynpro
framework� Context-sensitive value help, online
checks
Offline interactive forms� Offline interaction (no SAP system
access needed)� Static value help, static checking,
simple arithmetic calculations � Self-contained PDF (XML data+layout)
Process forms� Documents get printed, e-mailed,
archived or faxed
10
SAP TechEd ‘04
© SAP AG 2004, SAP TechEd / JAVA251/ 19
Interactive Forms - Design Time
© SAP AG 2004, SAP TechEd / JAVA251/ 20
Event Evaluation Architecture
DB
PresentationLogic
IntegrationLogic
BusinessLogic
PersistenceLogic
AdobeDcumentServices EducationDataServices
DataAccessObjects
EducationDataBeans
SchedulerApplication AttendeeApplication Web Dynpro
Web Services
EnterpriseJava
Beans
SQLJ
11
SAP TechEd ‘04
© SAP AG 2004, SAP TechEd / JAVA251/ 21
What is Web Dynpro ?
A Programming Model for User Interfaces� Offered for Java and ABAP� Derived from the MVC (“model-view-controller”)
design pattern
A Set of Tools for User Interface Design� Focus on graphical modeling� Code is generated from the meta-model
declaration
A Runtime Environment for Applications� Framework running on J2EE server offers
common services� Client-side technology for browser-based user
interfaces
A Technology for Software Modularization� Components help structure projects and support
pattern-based UIs
Æ platform-independent
concepts separate layout and logic
Æ minimize coding, maximize design
Æ facilitates alternative clients
and new client technology
Æ supports reuse of components
© SAP AG 2004, SAP TechEd / JAVA251/ 22
Web Dynpro Meta-Model Principles
Web Dynpro Component
View ViewController
CustomController
CustomController
View ViewController
View ViewController
CustomController
View ViewController
ModelInterface
ModelInterface
Proxys connectto the backend system (mySAP, Web Services, ...)
BackendProxy
BackendProxy
usages
Views definewhat the user seeson the screen
Viewcontrollershandle eventsfrom the user
Customcontrollersoffer globalservices
Models provide access to theinterfaces in the backend
Model View Controller
12
SAP TechEd ‘04
© SAP AG 2004, SAP TechEd / JAVA251/ 23
Web Dynpro Perspective
© SAP AG 2004, SAP TechEd / JAVA251/ 24
Agenda
SAP’s Environment for Java Development
Traveling from Database Layer to Client Layer� Persistence Layer� Business Layer� Integration Layer� Presentation Layer
SAP NetWeaver Portal
Summary
13
SAP TechEd ‘04
© SAP AG 2004, SAP TechEd / JAVA251/ 25
SAP NetWeaver Portal
Role based, …
…and Web based…
…access to any kindof applications, information, and
servicesHCM …
…secure,… Authentication
Scheduler Attendee
Single Sign On
SAP NetWeaver Portal 6.0SAP NetWeaver Portal 6.0
© SAP AG 2004, SAP TechEd / JAVA251/ 26
Integrating Web Dynpro Apps into SAP NW Portal
Web Dynpro iView wizard
Unified rendering
Unified branding� according to portal theme
Portal eventing� between different Web Dynpro
applications (and other non Web Dynpro portal content)
Portal Navigation� Web Dynpro applications can
trigger page- or object link navigations from (almost) any available Web Dynpro UI element
Work Protect Mode
iView WizardiView Wizard
Portal BrandingPortal Branding
14
SAP TechEd ‘04
© SAP AG 2004, SAP TechEd / JAVA251/ 27
Agenda
SAP’s Environment for Java Development
Traveling from Database Layer to Client Layer� Persistence Layer� Business Layer� Integration Layer� Presentation Layer
SAP NetWeaver Portal
Summary
© SAP AG 2004, SAP TechEd / JAVA251/ 28
SAP NetWeaver – Java Features and Highlights
Java Development Infrastructure � Comprehensive development & lifecycle
Java Dictionary & Open SQL for Java� DB-independent persistence framework
Web Services� Comprehensive Standard-based Infrastructure
Web Dynpro� Professional User Interface
Interactive Forms Solution – Powered by Adobe � Easy of design for user-friendly scenarios
Enterprise Portal� Role-based, secure and fully Web-enabled
15
SAP TechEd ‘04
© SAP AG 2004, SAP TechEd / JAVA251/ 29
Q&A
Questions?