Motivation
Es gibt so viele Dateiformate für das Deployment auf Applikationsservern, insbesondere in der SAP Umgebung, da verliert man mal schnell den Überblick. Ich habe im Artikel Dateiformate für Web-Applikationen (EAR, JAR, WAR etc.) schon einen Einblick in die „üblichen Verdächtigen“ gegeben. Beim SAP Netweaver AS Java wird das Ganze noch einmal etwas komplizierter. Hier darf man sich noch mit sca und sda Dateien herumschlagen.
Die Frage nach dem Warum und Weshalb bleibt dem Schöpfer überlassen.
Doing
Wie macht man aber nun aus einem ear File eine SAP konforme sca-Datei ?
- NWPACKTOOL aus Hinweis 1223957 installieren (SUSER erforderlich)
- Aus .ear file ein SDA file machen (hat dann weiterhin die Endung .ear)
-
sda File erstellen:
createsda –n jndi name –v vendor name –l jndi name –c 2 –type J2EE SourceEarFileLocation TargetSDAFileLocation
– JNDI name/application name : same as that u have mentioned under ejb-j2ee-engine.xml while developing the module(like „ModuleDeploy“)
– Vendor name: can be anything like „pi.module“ (but it should be less than 20 characters).
– SourceEarFileLocation: Give the EAR file location.
– TargetSDAFileLocation: Mentioned the location where you want to create ur SDA file.
Beispiel:
createsda –n ModuleDeploy –v pi.module –l ModuleDeploy –c 2 –type J2EE C:EARTest.ear c:result8SDATest - sca file erstellen:
packsca –n SCName –v Vendor –l location (z.B. Kunde) –r Release (z.B. 1.0) –sp Service Level (z.B. 1) –pl Patch Level (z.B. ) –da Quellverzeichnis mit sda Dateien –includingsubdirs Zieldatei (sca) Beispiel:
A SCA named di_test.sca is created. It contains every SDA located in the directory c:testsda and its subdirectories. Also, every build archive located in the directory c:testbas and its subdirectories is packed into the resulting SCA:packsca –n di_test –v test.com – l testfactory –c 12 –r 6.45 –sp 2 –pl 0 –da c:testsda –ba c:testbas –includingsubdirs c:di_test.sca
Fazit
Warum einfach, wenn es auch kompliziert geht? Ist halt SAP, da muss es einfach etwas komplizierter sein 😉
Links
Erstellen von SDA- und SCA-Archiven
