简体   繁体   English

远程将osgi软件包部署到Geronimo

[英]Deploy osgi bundles to Geronimo remotly

We have some custom repository which contains different builds (set of osgi bundles). 我们有一些自定义存储库,其中包含不同的构建(一组osgi捆绑包)。 There are any Geronimo 3 remote servers. 有任何Geronimo 3远程服务器。 I should by a command get some build from repository and make hot deploy to a set of stands. 我应该通过命令从存储库中获取一些构建并将其热部署到一组机架。 It maybe existing tool or java api. 它可能是现有工具或Java API。 As I know Cargo don't work with remote Geronimo. 据我所知,Cargo无法与远程Geronimo一起使用。 I will be grateful for any suggestion. 如有任何建议,我将不胜感激。

Geronimo 3 is based on apache karaf. Geronimo 3基于apache karaf。 So the mechanisms provided by karaf may be of help. 因此,karaf提供的机制可能会有所帮助。

  1. Connect to the ssh console and use commands like bundle:install or feature:install 连接到ssh控制台并使用命令bundle:install或feature:install
  2. Use the remote JMX port and the MBeans provided there. 使用远程JMX端口和那里提供的MBean。 Again you have the choice between installing bundles or features 同样,您可以选择安装捆绑软件或功能

In both cases bundles and features can be refered with http or mvn uri. 在这两种情况下,捆绑包和功能都可以使用http或mvn uri引用。 I personally normally use the mvn uris that karaf also uses internally. 我个人通常使用karaf内部使用的mvn uris。

So the process is to first build your bundles/features to a maven repository and then trigger the install command and access the mvn repo you deployed to. 因此,该过程是首先将捆绑软件/功能构建到Maven存储库,然后触发install命令并访问部署到的mvn存储库。

You can add you own maven repo in the etc/org.ops4j.pax.url.cfg. 您可以在etc / org.ops4j.pax.url.cfg中添加自己的Maven存储库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM