`
xgbjmxn
  • 浏览: 270571 次
  • 性别: Icon_minigender_1
  • 来自: 新乡
社区版块
存档分类
最新评论

Extending Virgo with a HttpService

阅读更多
Extending Virgo with a HttpService
Posted on 29th March 2011 by Chris Frost Several people have asked about us providing a packaging of Virgo that includes the OSGi HttpService. We don’t have any plans to do so because it’s so easy to extend Virgo with extra function yourself. I’m using the Equinox HttpService as the desired extra function here but the same approach applies no matter what you want to extend Virgo with.

All you need is the latest Virgo Kernel download, the Equinox HttpServer jar and it’s dependency the Servlet API jar. Unzip the Kernel and copy the two jars in to one of the repos. You have a choice of ‘repository/ext’ or ‘repository/usr’.

In this case ‘ext’ is the better choice as these bundles are being used to extend the core functionality of Virgo. If they were dependencies of an application then ‘usr’ would be the better choice.

There are two configuration files to edit.

■The ‘config/org.eclipse.virgo.kernel.userregion.properties’ file. At the very bottom, specify an additional initial artifact. The artifacts listed here will be started before any applications are installed. We need to list the Equinox HttpService bundle. The value is comma separated so after adding the new bundle you should have something like.
initialArtifacts =
    repository:plan/org.eclipse.virgo.kernel.userregion.springdm,
    repository:bundle/org.eclipse.equinox.http
■The HttpService requires some configuration itself, it needs to know which port to run on. This is given with the ‘org.osgi.service.http.port’ property and can be specified in the ‘lib/org.eclipse.virgo.kernel.launch.properties’ file.
org.osgi.service.http.port=8080
That’s all there is to it, start the kernel up and before any applications are installed the HttpService will be available. This is the same approach that should be used to extend Virgo in any other way and is exactly how the Tomcat and Jetty packages of Virgo are constructed. If you have extended Virgo in some way, let us know.
This entry was posted in Eclipse, OSGi, Virgo by Chris Frost. Bookmark the permalink.
分享到:
评论

相关推荐

    Extending Unity with Editor Scripting 无水印pdf

    Extending Unity with Editor Scripting 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请...

    Extending Unity with Editor Scripting 彩色高清无水印

    《Extending Unity with Editor Scripting 彩色高清无水印》是一本专注于Unity游戏引擎编辑器扩展的专业书籍,旨在帮助开发者充分利用Unity的Editor脚本功能,创建高效且定制化的开发工具。通过本书,读者可以深入...

    Extending Unity with Editor Scripting

    《Extending Unity with Editor Scripting》是关于如何使用Unity编辑器脚本扩展Unity引擎的一份详细指南,这本书由Angelo Tadres撰写,并由Packt Publishing出版。书中提供了丰富的信息,旨在帮助Unity(通常称为U3D...

    Extending ArcGIS with Python

    在IT领域,特别是地理信息系统(GIS)行业中,Python与ArcGIS的结合已成为提升工作效率和扩展功能的关键技术之一。本文将深入解析如何通过Python脚本来增强ArcGIS的功能,以及为何选择Python作为ArcGIS的脚本语言。...

    藏经阁-EXTENDING SPARK WITH JAVA AGEN.pdf

    EXTENDING SPARK WITH JAVA AGENTS EXTENDING SPARK WITH JAVA AGENTS是指使用Java代理扩展Spark的功能,以提高性能和优化大数据应用程序的性能。该技术主要涉及到Spark缓存和Java代理的集成,旨在解决Spark缓存...

    Extending the Linear Model with R

    《Extending the Linear Model with R》这本书主要探讨了如何通过R语言来扩展传统的线性模型,涵盖了一系列高级统计方法,包括广义线性模型、混合效应模型以及非参数回归等。这些模型和技术对于处理复杂数据集及进行...

    Extending SSIS with .NET Scripting(Apress,2015)

    Extending SSIS with .NET Scripting is a timeless and comprehensive scripting toolkit for SQL Server Integration Services to solve a wide array of everyday problems that SSIS developers encounter....

    藏经阁-EXTENDING SPARK WITH JAVA AGENTS.pdf

    藏经阁-EXTENDING SPARK WITH JAVA AGENTS spark 是一个基于内存的计算引擎,能够快速地处理大规模数据,但spark 的性能优化是非常重要的。spark 提供了 caching 机制来提高性能,但是 caching 的使用需要谨慎,...

    ExtendingSSISwith.NETScripting.pdf 英文原版

    Extending SSIS with .NET Scripting

    《Pro Oracle SQL》Chapter7 -- 7.7Extending Reports with GROUPING()

    在7.7节“Extending Reports with GROUPING()”中,作者深入探讨了如何利用GROUPING函数来增强报告的功能性和灵活性。GROUPING函数在SQL中是一个非常重要的聚合函数,它主要用于处理分组数据,尤其是在进行多级分组...

    EXTENDINGSPARKWITHJAVAAGENTS.pdf

    在SPARK SUMMIT 2017上,Jaroslav Bachorik and Adrian Popescu分享了题为《EXTENDING SPARK WITH JAVA AGENTS》,就Caching in Spark,Meet Java Agent,Class Transformers等方面的内容做了深入的分析。

    [R.Books]Extending the Linear Model with R

    本书《Extending the Linear Model with R: Generalized Linear, Mixed Effects and Nonparametric Regression Models》是由Julian J. Faraway所著,它是一本专注于使用R语言扩展线性模型的统计学高级教材。书中的...

    Extending and Automating a Systems-Theoretic Hazard Analysis for

    Extending and Automating a Systems-Theoretic Hazard Analysis for Requirements Generation and Analysis.zip

    Extending the Return Potential Model With a Descriptive

    《拓展回报潜力模型:引入描述性规范信念度量》 这篇学术文章由Kenneth E. Wallen和Gerard T. Kyle共同撰写,发表在国际期刊《社会与自然资源》上,探讨了如何通过添加描述性规范信念度量来扩展回报潜力模型...

    Extending the linear model with R

    《使用R扩展线性模型》一书,作为统计科学领域的重要参考文献,深入探讨了如何利用R语言这一强大的统计分析工具来扩展传统的线性模型,涵盖广义线性模型、混合效应模型以及非参数回归模型等高级统计方法。...

    使用特定于项目的bot扩展团队_Extending the team with a project-specific bot.p

    在现代软件开发中,自动化工具已经变得不可或缺,特别是在协作编码平台上如GitHub。团队通常会采用现成的bots来简化日常任务。然而,Coq团队选择了与众不同,他们从零开始开发和维护一个专为项目定制的bot。...

    《Pro Oracle SQL》Chapter7 -- 7.8Extending Reports With GROUPING_ID()

    《Pro Oracle SQL》一书的第七章第7.8节主要探讨了如何通过GROUPING_ID()函数来扩展Oracle SQL报告的功能。GROUPING_ID()在数据分析和报表生成中扮演着重要角色,尤其在处理分组数据时,能提供更详细的分组信息。...

    Seamless R and C++ Integration with Rcpp

    Rcpp is an R add-on package which facilitates extending R with C++ functions. It is being used for anything from small and quickly constructed add-on functions written either to fluidly experiment ...

Global site tag (gtag.js) - Google Analytics