javacro'14 - packaging and installing of the jee solution – miroslav rešetar
Upload: hujak-hrvatska-udruga-java-korisnika-croatian-java-user-association
Post on 29-Nov-2014
996 views
DESCRIPTION
TRANSCRIPT
![Page 1: JavaCro'14 - Packaging and installing of the JEE solution – Miroslav Rešetar](https://reader034.vdocuments.site/reader034/viewer/2022042623/5478e8b6b479599a098b45ea/html5/thumbnails/1.jpg)
Pakiranje i instalacija JEE rješenja
@MiroslavResetar, JavaCro14, 13.5.2014.
![Page 2: JavaCro'14 - Packaging and installing of the JEE solution – Miroslav Rešetar](https://reader034.vdocuments.site/reader034/viewer/2022042623/5478e8b6b479599a098b45ea/html5/thumbnails/2.jpg)
• LIKE MY IDEA is a social business solution that provides gathering organizational ideas in just one place ... with lean thinking and visual management, leading to continuous improvement process.
![Page 3: JavaCro'14 - Packaging and installing of the JEE solution – Miroslav Rešetar](https://reader034.vdocuments.site/reader034/viewer/2022042623/5478e8b6b479599a098b45ea/html5/thumbnails/3.jpg)
LIKE MY IDEA arhitektura
![Page 4: JavaCro'14 - Packaging and installing of the JEE solution – Miroslav Rešetar](https://reader034.vdocuments.site/reader034/viewer/2022042623/5478e8b6b479599a098b45ea/html5/thumbnails/4.jpg)
Kako radimo Release?
release:perform
![Page 5: JavaCro'14 - Packaging and installing of the JEE solution – Miroslav Rešetar](https://reader034.vdocuments.site/reader034/viewer/2022042623/5478e8b6b479599a098b45ea/html5/thumbnails/5.jpg)
Pakiranje release-a
• Što moramo sve upakirati • Aplikacija (lmi-rest EAR) • Event handler (lmi-eh) biblioteka • DDL • Dokumentacija (Installation Guide) • Connections customizations • Jython wsadmin skripte • Linux shell & Windows batch skripte • Groovy instalacijska skripta • Biblioteke potrebne za instalaciju
![Page 6: JavaCro'14 - Packaging and installing of the JEE solution – Miroslav Rešetar](https://reader034.vdocuments.site/reader034/viewer/2022042623/5478e8b6b479599a098b45ea/html5/thumbnails/6.jpg)
Maven – dependency mgmt
![Page 7: JavaCro'14 - Packaging and installing of the JEE solution – Miroslav Rešetar](https://reader034.vdocuments.site/reader034/viewer/2022042623/5478e8b6b479599a098b45ea/html5/thumbnails/7.jpg)
Maven Assembly Plugin
• „... build distribution "assemblies" easily, using one of the convenient, prefabricated assembly descriptors”
![Page 8: JavaCro'14 - Packaging and installing of the JEE solution – Miroslav Rešetar](https://reader034.vdocuments.site/reader034/viewer/2022042623/5478e8b6b479599a098b45ea/html5/thumbnails/8.jpg)
Priprema servera za instalaciju aplikacije
• Potrebno je kreirati resurse • Shared library (lmi-eh) • Work Manager • JMS resurse (queue, JNDI) • JDBC Datasource
• Promijeniti nekoliko config datoteka • Konfiguriranje IBM Connectionsa se radi kroz XML datoteke
• check out • modify • check in
![Page 9: JavaCro'14 - Packaging and installing of the JEE solution – Miroslav Rešetar](https://reader034.vdocuments.site/reader034/viewer/2022042623/5478e8b6b479599a098b45ea/html5/thumbnails/9.jpg)
Instalacija aplikacije
• Kopiranje shared biblioteke lmi-eh • Dodavanje iste kao shared u News aplikaciju
• Instalacija lmi-rest EAR aplikacije
• Update samo jedne datoteke u Blog aplikaciji • blog template
![Page 10: JavaCro'14 - Packaging and installing of the JEE solution – Miroslav Rešetar](https://reader034.vdocuments.site/reader034/viewer/2022042623/5478e8b6b479599a098b45ea/html5/thumbnails/10.jpg)
Kako ubrzati instalaciju?
• Automatizacija • Sve što je moguće napraviti programski, napraviti tako
• Lakše je kada aplikacijski server ima podršku za automatizaciju • „The wsadmin tool runs scripts. You can use the wsadmin
tool to manage application servers as well as the configuration, application deployment, and server runtime operations.”
• Ništa ne „uklesati u kamen” • modularno i konfigurabilno
![Page 11: JavaCro'14 - Packaging and installing of the JEE solution – Miroslav Rešetar](https://reader034.vdocuments.site/reader034/viewer/2022042623/5478e8b6b479599a098b45ea/html5/thumbnails/11.jpg)
Priprema servera za instalaciju aplikacije
• Potrebno je kreirati resurse • Shared library (lmi-eh) • Work Manager • JMS resurse (queue, JNDI) • JDBC Datasource
• Promijeniti nekoliko config datoteka • Konfiguriranje IBM Connectionsa se radi kroz XML datoteke
• check out • modify • check in
![Page 12: JavaCro'14 - Packaging and installing of the JEE solution – Miroslav Rešetar](https://reader034.vdocuments.site/reader034/viewer/2022042623/5478e8b6b479599a098b45ea/html5/thumbnails/12.jpg)
Instalacija aplikacije
• Kopiranje shared biblioteke lmi-eh • Dodavanje iste kao shared u News aplikaciju
• Instalacija lmi-rest EAR aplikacije
• Update samo jedne datoteke u Blog aplikaciji • blog template
![Page 13: JavaCro'14 - Packaging and installing of the JEE solution – Miroslav Rešetar](https://reader034.vdocuments.site/reader034/viewer/2022042623/5478e8b6b479599a098b45ea/html5/thumbnails/13.jpg)
Jython skripte
![Page 14: JavaCro'14 - Packaging and installing of the JEE solution – Miroslav Rešetar](https://reader034.vdocuments.site/reader034/viewer/2022042623/5478e8b6b479599a098b45ea/html5/thumbnails/14.jpg)
kontrolni program
• Zašto Groovy? • Java je već instalirana na serveru • Za rad dovoljan groovy-all.jar • Out-of-the-box Commons CLI • Samo jedna skripta za Linux/Win • Na raspolaganju sve Java biblioteke • Konfiguracija kroz property datoteku • Dobra podrška za pokretanje sistemskih procesa
• groovy -e "'ls'.execute().waitForProcessOutput(System.out, System.err)"
![Page 15: JavaCro'14 - Packaging and installing of the JEE solution – Miroslav Rešetar](https://reader034.vdocuments.site/reader034/viewer/2022042623/5478e8b6b479599a098b45ea/html5/thumbnails/15.jpg)
Pokretanje instalacije
![Page 16: JavaCro'14 - Packaging and installing of the JEE solution – Miroslav Rešetar](https://reader034.vdocuments.site/reader034/viewer/2022042623/5478e8b6b479599a098b45ea/html5/thumbnails/16.jpg)
Koraci u instalaciji
![Page 17: JavaCro'14 - Packaging and installing of the JEE solution – Miroslav Rešetar](https://reader034.vdocuments.site/reader034/viewer/2022042623/5478e8b6b479599a098b45ea/html5/thumbnails/17.jpg)
Groovy pokreće Jython
![Page 18: JavaCro'14 - Packaging and installing of the JEE solution – Miroslav Rešetar](https://reader034.vdocuments.site/reader034/viewer/2022042623/5478e8b6b479599a098b45ea/html5/thumbnails/18.jpg)
Prilagodbe Connectionsa
• Zadatak: kopirati resurse (customizations) u direktorij • Opasnosti: resursi već mogu biti u istoj putanji
• Rješenje: Groovy AntBuilder
![Page 19: JavaCro'14 - Packaging and installing of the JEE solution – Miroslav Rešetar](https://reader034.vdocuments.site/reader034/viewer/2022042623/5478e8b6b479599a098b45ea/html5/thumbnails/19.jpg)
JAXB – Update XML konfiguracije
• Connections widgeti se registriraju ažuriranje XML konfiguracije • Maven jaxb2-maven-plugin (xjc, .xsd -> .Java)
![Page 20: JavaCro'14 - Packaging and installing of the JEE solution – Miroslav Rešetar](https://reader034.vdocuments.site/reader034/viewer/2022042623/5478e8b6b479599a098b45ea/html5/thumbnails/20.jpg)
Pitanja?
![Page 21: JavaCro'14 - Packaging and installing of the JEE solution – Miroslav Rešetar](https://reader034.vdocuments.site/reader034/viewer/2022042623/5478e8b6b479599a098b45ea/html5/thumbnails/21.jpg)
Reference
• LikeMyIdea - http://www.likemyidea.com/
• Tag cloud generator - http://www.wordle.net/create
• wsadmin - http://goo.gl/3FdluP