Convert EAR To SDA
Convert EAR To SDA
Convert EAR To SDA
Applies to:
SAP Net Weaver Process Integration 7.1 or 7.0. For more information, visit the Service Bus-based
Integration homepage.
This document caters to the needs of those XI/PI developers/consultants who are using module development
etc. in which EAR to SDA file conversion are required
Summary
EAR file to SDA file conversion is used frequently while developing adapter modules or other NWDS projects
for XI/PI which needs to be deployed on PI server.
Authors:
Author Bio
Mayank Gupta is working as a Senior Systems Engineer on SAP XI/PI with Infosys Technologies
Limited. He began his career in Nov-2007 and since then he has been working on SAP XI/PI.
His area of expertise is SAP XI/PI.
Neelansha Singh is working as a Senior Systems Engineer on SAP XI/PI with Infosys
Technologies Limited. She began her career in Nov-2007 and since then she has been working
on SAP XI/PI. Her area of expertise is SAP XI/PI.
Table of Contents
Introduction ......................................................................................................................................................... 3
Prerequisites ....................................................................................................................................................... 3
Converting EAR to SDA and Deploying it using JSPM ...................................................................................... 3
Convert EAR to SDA ....................................................................................................................................... 3
Step 1: ......................................................................................................................................................................... 3
Step 2: ......................................................................................................................................................................... 3
Step 3: ......................................................................................................................................................................... 4
Step 4: ......................................................................................................................................................................... 4
Step 5: ......................................................................................................................................................................... 4
Step 6: ......................................................................................................................................................................... 5
Step 7: ......................................................................................................................................................................... 5
Introduction
In PI, whenever we develop a custom adaptor module, java proxy or we want to deploy external JDBC/JMS
drivers to the server, we need SDA (Software Delivery Archive) file to be deployed on PI Server using JSPM
(Java Support Package Manager) in PI 7.1 and using SDM(software deployment manager) in older versions.
In this document conversion of EAR file (created using NWDS or any IDE) to SDA file has been explained.
JSPM (Java Support Package Manager)
Custom Adapter Module
Java Proxy
External Driver Configuration in Process Integration 7.1 Using JSPM
Prerequisites
Net weaver Developer Studio (NWDS) 7.1 should be installed on the local system.
Fig. 01
Step 2:
Delete all SAP specific jar files from the EAR file by unzipping the .ear file and then again zip the files. SAP
jar files are deleted because all these files are already available on PI server and the references to them
have been given in application-j2ee-engine.xml file.
Step 3:
Using nwcetool (or CECTL i.e. Composition Environment Command Line Tool) provided with NWDS 7.1,
convert .ear file to .sda file. Use createsda command and command prompt to create the SDA file.
CECLT.pdf
C:\Program Files\SAP\IDE\CE\eclipse\tools\nwcetool
Step 4:
Run Command Prompt and go to the nwcetool location and run the file nwcetool.bat to start nwcetool.
Step 5:
Execute the createsda command to convert .ear to .sda file.
Syntax for createsda:createsda n <application name/ JNDI Name> v <Vendor name> l <application name/ JNDI Name> c 2
type J2EE <source file location> <Target file location>
createsda n ExcelAdapter v pi.adapter.poc l ExcelAdapter c 2 type J2EE C:\EAR_ExcelAdapter.ear
c:\result16\SDA_ExcelAdapter
Fig. 02
Application Name Should not be more than 20 characters!!!!
createsda n ExcelPOCAdapter123456 v pi.adapter.poc l ExcelPOCAdapter123456 c 2 type J2EE
C:\AdapterExcelEAR.ear c:\result15\SDA_AdapterExcel1
Fig. 03
Step 6:
Files present in the SDA file:
Fig. 04
Step 7:
Now SDA file is ready to be deployed. Deploy it using JSPM.
Deploy using JSPM:
Refer to Section 1.3 of document: External Driver Configuration in Process Integration 7.1 Using JSPM
Fig. 05
Fig. 06
Fig. 07
Step 3:
The cause of any exception while executing the module, can be checked in
logs and traces - > Log Viewer -> Java trace
Fig. 08
Related Content
External Driver Configuration in Process Integration 7.1 Using JSPM
Composition Environment Command Line Tool
Create your own SCA