{"id":20198783,"url":"https://github.com/eclipsesource/rap-virgo-examples","last_synced_at":"2025-08-07T05:17:28.889Z","repository":{"id":3794734,"uuid":"4873252","full_name":"eclipsesource/rap-virgo-examples","owner":"eclipsesource","description":"RAP Demo running on Virgo","archived":false,"fork":false,"pushed_at":"2013-08-05T12:38:25.000Z","size":111,"stargazers_count":13,"open_issues_count":0,"forks_count":8,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-04-14T22:29:19.732Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eclipsesource.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-03T14:28:09.000Z","updated_at":"2017-01-24T07:14:01.000Z","dependencies_parsed_at":"2022-09-18T10:42:08.660Z","dependency_job_id":null,"html_url":"https://github.com/eclipsesource/rap-virgo-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipsesource%2Frap-virgo-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipsesource%2Frap-virgo-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipsesource%2Frap-virgo-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipsesource%2Frap-virgo-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eclipsesource","download_url":"https://codeload.github.com/eclipsesource/rap-virgo-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224567834,"owners_count":17332832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T04:33:54.919Z","updated_at":"2024-11-14T04:33:57.463Z","avatar_url":"https://github.com/eclipsesource.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A collection of Virgo related examples\n\nThis repository contains a collection of OSGi projects developed with Virgo:\n\n* RAP example - packaged as Web Application Bundle\n* RAP example - with OSGi integration via blueprint\n* Blueprint - export embedded H2 DataSource via OSGi service\n* Blueprint - consume the DataSource and provide some OSGi console commands\n* Blueprint - dynamically update beans via OSGi Configuration Admin\n\n#### RAP helloworld packaged as Web Application Bundle (WAB)\n\nBuild com.eclipsesource.virgo.examples.rap.webbundle:\n\n1. cd com.eclipsesource.virgo.examples.parent\n1. mvn package\n\nCopy the required RAP bundle to your virgo installation:\n\n1. cd com.eclipsesource.virgo.examples.rap.webbundle\n1. export VIRGO_HOME=enter-your-virgo-installation-directory-here\n1. mvn -f virgo-setup.xml dependency:copy\n\nThen copy the generated webbundle from the Maven build folder target into the\nVirgo pickup folder.\n\nOnce deployed the sample is available at http://localhost:8080/helloworld/hello\n\nFor more information please refer to the RAP on Virgo tutorial:\n\"Developing Web Application Bundles with RAP and Virgo\"\nat http://eclipsesource.com/blogs/tutorials/developing-web-application-bundles-with-rap-and-virgo/\n\n#### RAP helloworld with OSGi integration via blueprint\n\nBuild com.eclipsesource.virgo.examples.rap.blueprint:\n\n1. cd com.eclipsesource.virgo.examples.parent\n1. mvn package\n\nCopy the required RAP bundle to your virgo installation:\n\n1. cd com.eclipsesource.virgo.examples.rap.blueprint\n1. export VIRGO_HOME=enter-your-virgo-installation-directory-here\n1. mvn -f virgo-setup.xml dependency:copy\n\nExtend Virgo to provide an OSGi HttpService and the RAP OSGi integration:\n\nDo this by providing the necessary bundles in the repository/usr folder of Virgo\nand then copy the rap.blueprint.plan into the Virgo pickup folder.\n\nNecessary bundles are:\n\n1. org.eclipse.equinox.http.servlet\n1. org.eclipse.equinox.http.jetty\n\n(Those are pre-packaged in the RAP target download or available directly from the Equinox project site.)\n\nThen copy the generated bundle from the Maven build folder target into the\nVirgo pickup folder.\n\nOnce deployed the sample is available at http://localhost:8080/helloworld/hello\n\nFor more information please refer to the RAP on Virgo tutorial:\n\"Developing Web Application Bundles with RAP and Virgo\"\nat http://eclipsesource.com/blogs/tutorials/developing-web-application-bundles-with-rap-and-virgo/\n\nNote: Jetty and the HttpService use the same port per default. So you have to configure either the HttpService or the default Jetty configuration.\n\nProvide org.osgi.service.http.port=18080 or change the port in jetty/etc/jetty.xml.\n\n#### Blueprint example - OSGi building blocks\n\nBuild com.eclipsesource.examples.virgo.rap.webbundle:\n\n1. cd com.eclipsesource.virgo.examples.parent\n1. mvn package\n\nCopy the required H2 bundle to your virgo installation:\n\n1. cd com.eclipsesource.virgo.examples.blueprint.h2\n1. export VIRGO_HOME=enter-your-virgo-installation-directory-here\n1. mvn -f virgo-setup.xml dependency:copy\n\nThen copy the generated OSGi bundles from the Maven build folders target into the Virgo pickup folder.\n\nNow you have additional OSGi console commands.\n\nFor more information please refer to the blog post\n\"How to create blueprints for your OSGi building blocks\"\nat http://eclipsesource.com/blogs/2012/08/11/how-to-create-blueprints-for-your-osgi-building-blocks/\n\n#### Blueprint example - Configuration Admin ####\n\nDrop com.eclipsesource.virgo.examples.blueprint.cm into the pickup of your Virgo server.\n\nTo trigger the dynamic change of the beans drop configurations into the pickup folder.\n\nUse labX.properties to test autowire-on-update and labY.properties to test update-method approach.\n\nlabX.properties:\n```\ninteger=42\n```\n\nlabY.properties:\n```\nfoo=bar\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclipsesource%2Frap-virgo-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feclipsesource%2Frap-virgo-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclipsesource%2Frap-virgo-examples/lists"}