47
8/20/2019 Adapter Module Development - Presentation http://slidepdf.com/reader/full/adapter-module-development-presentation 1/47 XI 3.0 Adapter Module Development Stefan Grube SAP NetWeaver RIG EMEA SAP AG

Adapter Module Development - Presentation

Embed Size (px)

Citation preview

Page 1: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 1/47

XI 3.0 Adapter ModuleDevelopment

Stefan GrubeSAP NetWeaver RIG EMEA

SAP AG

Page 2: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 2/47

Adapter Framework Overview

Module Development Overview

Logging in the Adapter Modules

Prepare Development Environment

Create Adapter Module as Enterprise Java Bean

Deploy the Adapter Module to the Adapter Engine

Page 3: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 3/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 3

The SAP XI Adapter Framework

Based on SAP J2EE Engine

Uniform Handling of Deployment,

Configuration, Administration, Monitoring

and Security

Technical Basis for Adapter Engineand SAP Partner Connectivity Kit

Adapters run as services within the SAP

J2EE Engine and use the services of theAdapter Framework (e.g.

Queuing/Logging)

Usage of open standards: SOAP, JMS,

JDBC…..

Page 4: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 4/47© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 4

SAP XI 3.0 Architecture

Integration Server 

Plain

J2SE

Adapter

Engine

Partner Connectivity

KitOptional non-central

Adapter Engine

Central

Adapter Engine

Integration Repository / Integration Directory / System Landscape Directory

Business Process Engine

Integration Engine

Adapter Framework

Messaging

Queuing

Security Handling

R e s  o ur   c  e

A  d   a  p t    er  

R e s  o ur   c  e

A  d   a  p t    er  

R e s  o ur   c  e

A  d   a  p t    er  

Adapter FW

Messaging

Queuing

Security Handling

Adapter FW

Messaging

Queuing

Security Handling

PCK Configuration

and Monitoring

HT T P  /    I    D o c 

A  d   a  p t    er  

Adapter 

File/DB/JMS

Marketplace

3rd Party Sys.

File

DB

JMSSOAP

SAP &

Non-SAP

System

File/DB/JMS

Marketplace

3rd Party Sys.

File/DB/JMS

Marketplace

3rd Party Sys.

Adapter Framework

Messaging

Queuing

Security Handling

Adapter FW

Messaging

Queuing

Security Handling

Adapter FW

Messaging

Queuing

Security Handling

Page 5: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 5/47© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 5

SAP Partner Connectivity Kit – Overview

Supports Smaller Companies / Subsidiaries to exchange XML

documents with their business partner’s / headquarters' SAP XI

SAP / 3rd

Party Appl.SAP XI

Smaller Company / Subsidiary

SAP

PCK

SAPApplication

3rd Party

Application

Large Business Partner /

Headquarters

Internet

Provides a Platform for Development of own JCA Resource Adapters

SAP

PCK

Page 6: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 6/47© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 6

SAP XI-Adapters vs. SAP XI-Proxies

Adapters Connect existing (legacy) systems to XI

Specific wire protocol

Interface semantics externally pre-defined Outside-in development approach

Proxies

Connect new SAP applications to XI

Native connectivity to Application system (adapter-less)

Interfaces designed centrally in Integration Repository

Inside-out development approach

Page 7: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 7/47© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 7

Use Cases for Adapter Module Development

Converting the payload (not covered with standards)

Changing encoding (escaping, de-escaping)

Encryption and decryption

Creating and merging of additional attachments

Page 8: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 8/47

Adapter Framework Overview

Module Development Overview

Logging in the Adapter Modules

Prepare Development Environment

Create Adapter Module as Enterprise Java Bean

Deploy the Adapter Module to the Adapter Engine

Page 9: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 9/47© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 9

SAP XI Adapter Framework Components Overview

XI

Integration Server 

Integration Repository

Integration Directory

System LandscapeDirectory

Runtime Workbench

XI Adapter Framework on SAP J2EE Server 6.40 ConnectedSystem

JCA 1.0 Adapter 

XI MessagingService

ConfigurationServices

 Administrational Services

 AF ModuleProcessor 

Generic AFmodules

R R

R

R

R

R R

 Adapter specific

modules

R

RR

Cache

R

Logging API

Log File & Audit DB

2

3

8

4

5

7

Message Definition(WSDL, xsd, dtd)

Utilities(Threads,

Transactions)

R6

R

externalprotocol

RJCA 1.0

Framework

1

 Adapter (configuration) meta

data (xsd)

R4

Page 10: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 10/47© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 10

Java Resource Adapter 

SAP J2EE 6.40 is J2EE 1.3

compliant and supports JCA 1.0

JCA 1.0 was designed to unify

access to non-Java backends

JCA 1.0 does not specify inbound

calls from non-Java backends

SAP XI Adapters might need to

support inbound and outbound calls

Source: Sun JCA 1.0 specification

Page 11: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 11/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 11

SAP XI AF Message API

Messaging System (MS)provides the persistence

for messages within the

Adapter Framework.

Support for qualities

of service (QoS):

BE, EO, EOIO

The Message API usesfactories from MS to

instantiate message objects.

A message consists of amain payload and an arbitrary

number of attachments.

Page 12: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 12/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 12

SAP XI Adapter Standard Modules

SAP J2EE Server 6.30

XI AF

Messaging

Service

ejb 2.0 Container 

3rd Party JCA 1.0 Adapter 

JCA 1.0 Framework

XI AF

Entry ejb

XI AF generic

modules (ejb)

XI AF

Module

Exit ejb

 Adapter specific

modules (ejb)

(optional)

XI AF Module Processor 

RJCA 1.0 CCI

 Connections

R R

Rejb call Rejb call

Deployed

J2EE and

XI system

libraries:

aii_af_ 

service_util.

 jar etc.

R

Java Classes

JDBC/

Open

SQL

XI AF

Configura

tion

HTTP(S)

Servlet

(Web

Cont.)

XI AF

Utilities

 AF Log FilesData Base (SAP DB, other)

Rsession ejb

call

J2EE system & add-on services

R

SAP XI Messages

(SOAP w/A)

Rsession ejb

call

RJava

classes

Rservice call

R

3rd Party

Protocol

...

R

R

RJCA 1.0 SPI

 Connections

Channel

templates define a

module chain to

be processed by

the SAP XI AFModule Processor 

The default chain

can be modifiedby customers

Standard modules

can be re-used to

access JCA

adapters and SAP

XI Messaging

System

Ad t M d l P

Page 13: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 13/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 13

Adapter Module Processor 

Receiver Direction

Asynchronous

Communication

Messaging

System

Adapter 

Module

Module

2

Module

1

Module

1

Module

2

Adapter 

Module

JCA 1.0

Adapter 

Standard Adapter

Module

Customer specific

Adapter Modules

Sender DirectionAsynchronous

Communication

Ad t M d l Ch i

Page 14: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 14/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 14

Adapter Module Chain

Custom modules

can be added todefault module

chains

Additional

configuration

parameters can

be specified eachmodule

Ad t M d l (UML di )

Page 15: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 15/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 15

Adapter Module (UML diagram)

Access toAdapter Configuration

Access toMessage content

Method called by

ModuleProcessor 

Adapter Module (code fragment)

Page 16: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 16/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 16

Adapter Module (code fragment)

 public class CreateAttachment

implements SessionBean, Module {

 public ModuleData process( ModuleContext moduleContext,

 ModuleData inputModuleData)throws ModuleException {

 Message messageIN =(Message) inputModuleData.getPrincipalData();

XMLPayload xmlPayloadIN = messageIN.getDocument();

String parameter =

 moduleContext.getContextData("parameter");

}

}

Page 17: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 17/47

Adapter Framework Overview

Module Development Overview

Logging in the Adapter Modules

Prepare Development Environment

Create Adapter Module as Enterprise Java BeanDeploy the Adapter Module to the Adapter Engine

Logging

Page 18: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 18/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 18

Logging

Developers and systems management experts might have different

requirements on logging mechanisms.

SAP XI AF Logging API supports methods for displaying

processing output in the SAP XI Message Display Tool

trace output in the SAP J2EE engine.

The trace output can be maintained by default in the XML

configuration file log-configuration.xml or at runtime in the J2EE

service LogConfigurator for each log controller.

Logging: Service Trace

Page 19: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 19/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 19

Logging: Service Trace

SAP J2EE Engine providesa LogViewer service

Trace output is configured

in the service

LogConfigurator 

Each log destination can

be separately displayed

and filtered according touser-specific needs

Logging: Service Trace (code fragment)

Page 20: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 20/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 20

Logging: Service Trace (code fragment)

 public class CreateAttachment implements SessionBean,

 Module {

 private static final Trace TRACE = new Trace("yourVersion");

 public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData)throws ModuleException {

String SIGNATURE = "YourSignature";TRACE.entering(SIGNATURE,

new Object[] { moduleContext, inputModuleData });

try{ Message messageIN =

(Message) inputModuleData.getPrincipalData();

} catch (Exception e) {TRACE.catching(SIGNATURE, e);TRACE.errorT(SIGNATURE, "Error occurred");

}

}

Logging: Audit Log

Page 21: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 21/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 21

Logging: Audit Log

The SAP XI Message DisplayTool provides comprehensive

filter mechanisms to find the

relevant messages

For each message content

and audit log can be

monitored

Logging: Audit Log

Page 22: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 22/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 22

Logging: Audit Log

For each message an audit log is written that shows processing details

(e.g. the executed module chain).

SAP XI AF provides standard methods within its logging framework.

Logging: Audit Log (code fragment)

Page 23: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 23/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 23

Logging: Audit Log (code fragment)

 public class CreateAttachment

implements SessionBean, Module {

 public ModuleData process( ModuleContext moduleContext,

 ModuleData inputModuleData)throws ModuleException {

 Message messageIN =(Message) inputModuleData.getPrincipalData();

 AuditMessageKey amk =new AuditMessageKey(msg.getMessageId(),

 AuditDirection.OUTBOUND);

 Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"CreateAttachment: Module called");

}

}

Page 24: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 24/47

Adapter Framework Overview

Module Development Overview

Logging in the Adapter Modules

Prepare Development Environment

Create Adapter Module as Enterprise Java BeanDeploy the Adapter Module to the Adapter Engine

Development Kit and Module Processor 

Page 25: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 25/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 25

p

Development Kit for development of additional adapters (partner and

customer solutions) based on SAP J2EE und JCA (J2EE Connector

Architecture)

SAP NetWeaver Certification of Third-Party Adapters

Modulprocessor as extension concept (corresponds to dispatcher

functionality within the XI 2.0 Adapter Engine); Default-Modules per

Adapter 

Development Environment

Page 26: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 26/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 26

p

Adapter development, deployment andtesting is possible on a single machine, no

full-blown SAP XI is required.

Installation of SAP PCK already contains a

sample adapter (including Adapter MetaData) and a sample module that should

serve as a starting point.

For testing purposes integration scenarioscan be configured in SAP PCK

(e.g. loopback scenario).

SAP Partner Connectivity

Kit

Adapter FW

Messaging

Queuing

Security Handling

R e s  o ur   c  e

A  d   a  p t    er  

PCK Configuration

and Monitoring

File/DB/JMS

Marketplace

3rd Party Sys.

Java Doc and code samples for Module Development

Page 27: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 27/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 27

Copy the JAR file of the example adapter locally to your computer.

The JAR file contains the Java Doc and the source text of theexample adapter.

Copy the file sample_ra.jar from

<serverDir>\apps\sap.com\com.sap.aii.af.sample.ra\connector\connectors\sample_ra.rar to a separate directory on your computer.

<serverDir> is C:\usr\sap\J2E\JC00\j2ee\cluster\server0, for example.

Extract the JAR file to the same directory.

Open index.html to display the Java Doc.

The source text for the example adapter is located in a

subdirectory com\sap\aii\af\sample\adapter\ra.

Java Doc for Module Development

Page 28: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 28/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 28

Available Documentation

Page 29: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 29/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 29

The Adapter

Development

documentation is

available via

http://help.sap.com

Page 30: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 30/47

Adapter Framework Overview

Module Development Overview

Logging in the Adapter Modules

Prepare Development Environment

Create Adapter Module as Enterprise Java BeanDeploy the Adapter Module to the Adapter Engine

Create the Adapter Module EJB

Page 31: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 31/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 31

Steps in the SAP NetWeaver Developer Studio:

1. Create an EJB Module Project

2. Apply the libraries (at least aii_af_mp.jar and aii_af_ms_api.jar )

3. Create a package (in folder ejbModule)

4. Create a Java class (not an EJB). Use template on the following

pages

5. Write the code of the Java class

6. Adjust the ejb-jar.xml

7. Adjust the ejb-j2ee-engine.xml

8. Build the EJB archive (JAR)

Overview of usable libraries

Page 32: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 32/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 32

For the module development you have to extract following libraries

from your PCK/AF installation:

aii_af_mp.jar  – the interface Module

aii_af_ms_api.jar  – dealing with payload and attachments

aii_af_trace.jar – writing trace

aii_af_svc.jar – adapter services

aii_af_cpa.jar – reading channel entries

sapxmltoolkit.jar – XML parser 

2

Adapter Module EJB template (1)

Page 33: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 33/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 33

 package yourPackage;

import javax.ejb.CreateException;

import javax.ejb.SessionBean;

import javax.ejb.SessionContext;

import com.sap.aii.af.mp.module.*;

import com.sap.aii.af.ra.ms.api.*;

/**

* @ejbHome <{com.sap.aii.af.mp.module.ModuleHome}> 

* @ejbLocal <{com.sap.aii.af.mp.module.ModuleLocal}> * @ejbLocalHome <{com.sap.aii.af.mp.module.ModuleLocalHome}> 

* @ejbRemote <{com.sap.aii.af.mp.module.ModuleRemote}> 

* @stateless

*/

 public class YourClass implements SessionBean, Module{

 private SessionContext myContext;

4

Adapter Module EJB template (2)

Page 34: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 34/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 34

 public void ejbRemove() {

}

 public void ejbActivate() {

}

 public void ejbPassivate() {

}

 public void setSessionContext(SessionContext context) {

 myContext = context;

} public void ejbCreate() throws CreateException {

}

 public ModuleData process(ModuleContext moduleContext,

 ModuleData inputModuleData)

throws ModuleException {

// put your code here

return inputModuleData;

}

}

4

Code sample: adding an additional attachment

Page 35: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 35/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 35

 public ModuleData process(ModuleContext moduleContext,

 ModuleData inputModuleData)

throws ModuleException {

try {

 Message msg = (Message) inputModuleData.getPrincipalData();

TextPayload attachment = msg.createTextPayload();

attachment.setName("Attachment");

attachment.setContentType("text/plain");

attachment.setText("Hello World"); msg.addAttachment(attachment);

inputModuleData.setPrincipalData(msg);

} catch (Exception e) {

 ModuleException me = new ModuleException(e);

throw me;

}

return inputModuleData;

}

5

The ejb-jar.xml

Page 36: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 36/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 36

 <?xml version="1.0" encoding="UTF-8"?> 

 <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD EnterpriseJavaBeans 2.0//EN“"http://java.sun.com/dtd/ejb-jar_2_0.dtd"> 

 <ejb-jar>  <description> EJB JAR description </description>  <display-name> EJB JAR  </display-name> 

 <enterprise-beans>  <session> 

 <ejb-name> YourEJBName </ejb-name>  <home> com.sap.aii.af.mp.module.ModuleHome </home>  <remote> com.sap.aii.af.mp.module.ModuleRemote </remote> 

 <local-home>  com.sap.aii.af.mp.module.ModuleLocalHome </local-home>  <local> com.sap.aii.af.mp.module.ModuleLocal </local>  <ejb-class> yourPackage.YourClass </ejb-class>  <session-type> Stateless </session-type>  <transaction-type> Container </transaction-type> 

 </session>  </enterprise-beans> 

 </ejb-jar> 

6

The ejb-j2ee-engine.xml

Page 37: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 37/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 37

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE ejb-j2ee-engine SYSTEM "ejb-j2ee-engine.dtd"><ejb-j2ee-engine>

<enterprise-beans>

<enterprise-bean>

<ejb-name> YourEJBName</ejb-name><jndi-name> YourJNDIName</jndi-name>

<session-props/>

</enterprise-bean>

</enterprise-beans>

</ejb-j2ee-engine>

7

Page 38: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 38/47

Deploying SAP XI Adapter Components

Page 39: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 39/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 39

SAP recommends to

use SAP SoftwareDeployment Manager

(SDM) for deployment

Software Delivery

Archives (SDA) can

contain software

components of different

types (e.g. applications,

libraries)

Detailed version

information and

dependencies to othercomponents simplify

program management

Files in the SDA/EAR

Page 40: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 40/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 40

Besides the JAR file with the Adapter Module classes and the ebj

descriptors, there are following files with path META-INF:

MANIFEST.MF

Contains the version numbers and the provider names.

SAP_MANIFEST.MF

Contains version numbers, content, and component names,

similar to a catalog. The SDM uses this information to manage the

deployment information in its database.

application.xml

Contains display names and references to icons if the adapter is

displayed with SAP J2EE tools.

application-j2ee-engine.xml

Contains references required during SDM deployment.

Create the Enterprise Application Archive

Page 41: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 41/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 41

Steps in the SAP NetWeaver Developer Studio:

1. Create an Enterprise Application Project

2. Add the EJB module

3. Adjust the application-j2ee-engine.xml like follows

4. Build the Application archive (EAR)

5. Deploy the EAR file to the PCK/AE

It is not possible to create an SDA file for EJB direct out of

the SAP NetWeaver Developer Studio. But you can deploy

the EAR files with SDM as well

The Application-j2ee-engine.xml

Page 42: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 42/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 42

In this file you have to create following references:

Reference target Reference

type

Reference

target-type

Provider name

com.sap.aii.af.lib hard library sap.com

com.sap.aii.adapter.xi.svc hard service sap.com

com.sap.aii.af.svc Hard service sap.com

com.sap.aii.af.cpa.svc hard service sap.com

3

Deploy the EAR File Using SDM

Page 43: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 43/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 43

Check Deployment Using Visual Admin Tool (1)

Page 44: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 44/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 44

Check, if the EJB is

deployed and active

Checking Deployment Using Visual Admin Tool (2)

Page 45: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 45/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 45

In the EBJ

Container you can

see and change the

JNDI name

Questions?

Page 46: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 46/47

© SAP AG 2005, SAP Skills November 2005 Conference / D5 / Joachim Orb / 46

Q

Page 47: Adapter Module Development - Presentation

8/20/2019 Adapter Module Development - Presentation

http://slidepdf.com/reader/full/adapter-module-development-presentation 47/47