Gemini WEB and Virgo

4,534 views

Published on

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,534
On SlideShare
0
From Embeds
0
Number of Embeds
1,364
Actions
Shares
0
Downloads
21
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Gemini WEB and Virgo

  1. 1. Hands on Gemini, Virgo, LibraHristo Iliev, Violeta Georgieva, Borislav KapukaranovMarch 22, 2011
  2. 2. LibraOSGi Tooling, Creating Web Application Bundle
  3. 3. OverviewIntegrates the existing WTP and PDEtooling. Provides standard tools for OSGiEnterprise application development.Features: Creation of deployable artifacts Converting existing Java EE artifacts Editing and validation of artifact metadata OSGi server adapter© 2011 SAP AG. All rights reserved. 3
  4. 4. Web Application BundleCreation© 2011 SAP AG. All rights reserved. 4
  5. 5. Gemini WebWeb Application Bundles (WAB), JSF
  6. 6. OverviewModel for Java EE Web Applications inOSGi. Interoperability between Java EEWeb Application and OSGiFeatures: Installation of WAR files and Web Application Bundles (WABs) Web application lifecycle control Control of configuration properties via URL parameters© 2011 SAP AG. All rights reserved. 6
  7. 7. Gemini WebBuilding and Running© 2011 SAP AG. All rights reserved. 7
  8. 8. VirgoConcepts
  9. 9. OverviewModule-based Java application server,designed to run enterprise Java andSpring-powered applications.Features: Application isolation Kernel isolation Provisioning Hot deployment Web container Spring 3 Legacy library support Supportability© 2011 SAP AG. All rights reserved. 10
  10. 10. Features Group Highlights Isolation Scoping User region Provisioning Hot deployment Deploy artifacts Repositories Type dependencies Web Jetty Gemini Web + Tomcat Libraries Spring Synthetic bundle context Supportability Logging Deadlock detection Heap dumps© 2011 SAP AG. All rights reserved. 11
  11. 11. Regions© 2011 SAP AG. All rights reserved. 12
  12. 12. DeploymentHot deploy, Artifacts, Plans
  13. 13. Running application on VirgoHow? Hot Deploy (pickup directory) Admin Console Programmatically© 2011 SAP AG. All rights reserved. 14
  14. 14. Deploy bundles1. Unzip Virgo from the resources/virgo/virgo-tomcat-server- 3.0.0.M03.zip file, located in the tutorial materials2. Start Virgo using either startup.bat or startup.sh© 2011 SAP AG. All rights reserved. 15
  15. 15. Hot deploymentBundles© 2011 SAP AG. All rights reserved. 16
  16. 16. Deploy bundles1. Export from Eclipse & Deploy the model bundle2. Export & Deploy the web application bundle3. Check both bundles in Admin Console https://localhost:8080/admin user: admin password: springsource4. Request the web application herehttp://localhost:8080/comics/series.jsf© 2011 SAP AG. All rights reserved. 17
  17. 17. Application packagingBundle, WAR Standard Well knownPAR Archive with all modules  Atomic No orderingPlan Ordering Scoping, AtomicityConfiguration© 2011 SAP AG. All rights reserved. 18
  18. 18. Plans<?xml version="1.0" encoding="UTF-8"?><plan name="multi-artifact.plan“ version="1.0.0” scoped="true“ atomic="true" xmlns=“…" xmlns:xsi=“…" xsi:schemaLocation=“…“> <artifact type="configuration” name="app-properties" version="1.0.0"/> <artifact type="bundle” name="com.acme.exciting.app" version="[2.0.0, 3.1.0)"/></plan>© 2011 SAP AG. All rights reserved. 19
  19. 19. Hot deploymentPlan© 2011 SAP AG. All rights reserved. 21
  20. 20. Deploy plans1. Stop the model bundle (this time lets use the Admin Console https://localhost:8080/admin user: admin password: springsource)2. Request the web application in a newbrowserhttp://localhost:8080/comics/series.jsf -what happens?3. Undeploy both bundles© 2011 SAP AG. All rights reserved. 22
  21. 21. Deploy plans - atomicity1. Copy both bundles in repository/usr2. Create a plan for our application usingthe already existing one as a skeleton3. Deploy the created plan via AdminConsole4. Check how stopping the model bundlewill affect the application this time© 2011 SAP AG. All rights reserved. 23
  22. 22. Usage hintsDebug, Security, Supportability
  23. 23. DebuggingDebug options: -debug <port> -suspendServiceability : Logs Dumps Heap dumps© 2011 SAP AG. All rights reserved. 25
  24. 24. Productive usageRestrict access: Remove Admin console Bind OSGi telnet to localhostOptimize: Move artifacts watched  external Pre-compile JSPs© 2011 SAP AG. All rights reserved. 26
  25. 25. FeedbackMailing list:https://dev.eclipse.org/mailman/listinfo/virgo-devVirgo forums:http://www.eclipse.org/forums/index.php?t=thread&frm_id=159© 2011 SAP AG. All rights reserved. 27
  26. 26. Thank You!Contact information:Hristo Iliev (hsiliev@gmail.com)Borislav Kapukaranov (b.kapukaranov@gmail.com)Violeta Georgieva (violeta.georgieva@sap.com)

×