问题标签 [eclipse-gemini]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
327 浏览

eclipse-virgo - Maven-Pax-Plugin 和 Gemini 蓝图 /Spring DM

以下情况:我们正在开发一个 OSGi 应用程序,最终产品应该使用 Eclipse Virgo。

为了与 OSGi 和 Spring 取得联系,我现在正在研究 OSGi 蓝图概念。我正在尝试使用 maven-pax-plugin 和 Gemini Blueprint/Spring-DM 但是当我运行 mvn pax:provision 时出现以下错误:

那么如何使用 pax 启用 Gemini Blueprint 或 Spring DM?

0 投票
2 回答
573 浏览

osgi - How to autostart org.eclipse.gemini.blueprint.extender in a feature based eclipse rcp application?

I have an eclipse rcp application that uses gemini blueprint. It has two features and hence a feature based product. Some of our bundles depend on service that where created by the blueprint extender. But actually the blueprint extender is only resolved on startup and not activated. Today we work around this by executing code in bundle activators, that checks if the org.eclipse.gemini.blueprint.extender bundle was started and if not it gets started.

Adding the bundle to the .product with a start level of 3 and autoStart=true has no effect. I think this is because our product is feature based. Is this correct? What is the best way to autostart the extender?

0 投票
0 回答
289 浏览

osgi - Gemini Blueprint Extender 线程中偶尔出现死锁

在启动我的 osgi 应用程序时,我偶尔会遇到死锁问题。我的项目具有以下外部依赖项(不包含我的项目特定捆绑包):

我的应用程序的线程转储如下:

线程EclipseGeminiBlueprintExtenderThread-24EclipseGeminiBlueprintExtenderThread-12死锁并以某种方式涉及Gogo shell。

我的问题是导致这种僵局的原因是什么?- 是我的代码中的某些东西还是双子座中的错误?我该如何解决这个问题?他将高度赞赏任何指点。

0 投票
1 回答
544 浏览

java - OSGi 和 Gemini JPA:使用配置管理

我正在编写一个用于学习目的的小型 OSGi 应用程序。我成功地设置了 Gemini JPA 和 DBAccess 服务以使用 JPA,只要我使用 persistence.xml 来配置我的持久性单元,它就可以正常工作。

然后我偶然发现了这个例子。在运行时提供持久性单元配置似乎是一个非常棒的功能。除了它不工作。我尝试了那个确切的代码(对于独立配置),它被执行了,但框架中没有任何变化。据我了解,不应该有一项新服务提供新的持久性单元吗?

我正在使用 Equinox 框架,gemini 和 dbaccess 的所有必要包都已安装并运行,并且 ConfigurationAdmin 包 ( org.eclipse.equinox.cm) 已安装并在我的代码执行时运行。

我像这样访问配置管理员:

0 投票
4 回答
2284 浏览

spring - 作为 OSGi 包的 Spring 框架下载

我正在为 OSGi 开发 Spring,也就是 Eclipse Gemini Blueprint。

我发现的每个教程或文档都提到将 Spring 提供的几个包添加到我的 OSGi 容器(如org.springframework.aop.jar)。很难找到当前 Spring 版本的下载,因为它似乎不再直接在他们的主页上提供(只有 maven 链接等,这不是当前项目的选项)。特别是每个教程都提到,这个库也是作为 OSGi 包提供的。

此外,Spring 框架提供了许多需要作为依赖项安装的包。从 Spring Framework 2.5 版开始,Spring 发行版中包含的 Spring jar 是有效的 OSGi 包,可以直接安装到 OSGi 平台中。

来源: http: //www.eclipse.org/gemini/blueprint/documentation/reference/1.0.2.RELEASE/html/app-deploy.html

但是我能找到的所有下载(例如http://maven.springframework.org/release/org/springframework/spring/3.2.5.RELEASE/)只包含普通的 jar,没有 OSGi 包。自 Spring 3.x 起,提供 OSGi 捆绑包的做法是否已停止?如何将必要的 Spring 依赖项添加到我的项目中?教程/文档是否已过时?

我正在使用最新版本的 Gemini 1.0.2。

0 投票
1 回答
280 浏览

java - 寻找支持会话范围服务的 OSGi 依赖注入框架

这个问题是Spring framework download as OSGi bundles的后续问题。

我正在寻找一个能够执行以下操作的框架:

  • 它必须在 OSGi 环境中工作
  • bean/services/无论你想怎么称呼它的一些概念
  • 此 bean/服务需要能够具有会话范围,最好与 Web 会话相关联
  • 通过依赖注入将此bean /服务注入需要它们的组件中(可选但高度赞赏 - 我猜一个可以从上面做这些事情的框架很可能也可以做依赖注入)
  • 必须被认为是可靠和稳定的,对未来的支持有良好的前景

最初我正在研究 Eclipse Gemini 蓝图,但是 (a) 我在启动和运行它时遇到了麻烦(请参阅上面的问题)和 (b) 不仅我的问题的答案显示了一些担忧,而且我不太确定我自己不再使用它了。我找不到很多它被广泛使用的参考资料,论坛几乎死了(比如 4 年内 8 页),而且似乎参与的 git 贡献者并不多(整个 2013 年有 23 次提交)。我不想在不到一年的时间里得到一个被认为是废弃软件的框架。

我现在的问题是:是否有任何框架(除了 Eclipse Gemini 之外)能够进行会话范围的 bean 并且最好是依赖注入?我也接受“不”作为答案,因为我开始担心那里真的没有。或者,如果您有充分的论据,您可以说服我重新使用 Eclipse Gemini。

0 投票
2 回答
2142 浏览

spring - 春季 OSGi 状态

目前围绕 Spring 和 OSGi 的发展情况如何?

看来最近事情变得有点平静了。

( http://docs.spring.io/osgi/ )上的文档的最新版本是 2009 年的。

我看到一些公告称 Spring DM 已成为 Eclipse Gemini Blueprint ( http://www.eclipse.org/gemini/blueprint/documentation/migration/ )。但也在那里,最新版本是从 2012 年 8 月开始的。

Spring 和 OSGi 是死路吗?如果是这样,还有哪些其他选项可以使 Spring 应用程序模块化(例如,允许在正在运行的 JVM 中部署、启动、停止和更新模块)?

谢谢

0 投票
1 回答
109 浏览

osgi-bundle - Springsource EBR 已关闭。接下来是什么?

我们在自己的 Nexus 中代理 Springsource EBR,在其上添加了 p2 功能,以便我们可以在 p2 目标平台中使用它。现在,由于 Springsource EBR 已关闭,代理不再工作。现在我有一些问题:

  1. 是否有包含所有捆绑包的替代存储库?
  2. 还有其他人使用 Springsource EBR 还是只有我一个?
  3. 建立一个包含 Springsource 托管的所有包的公共 EBR 是否有意义?也许 Spring 的某个人知道 EBR 上有多少流量?
0 投票
1 回答
1038 浏览

osgi - Blueprint Osgi - 服务创建/销毁的监听器

可以添加一个侦听器以了解何时创建具有特定接口的 Bean 服务。而当具有相同接口的bean被销毁时???

最好的方法是什么?阅读注入服务列表

知道列表值何时更改的方法是什么?

我正在使用双子座蓝图(春季)

0 投票
3 回答
1469 浏览

jpa - Using EclipseLink JPA in OSGI (Karaf)

I am using EclipseLink as my JPA implementation(in KARAF).And following jars are used:-

My persistence.xml is :-

But the gemini.dbaccess.derby_1.0.0.M1-incubation jar remians in Installed state as well as the gemini.jpa.weaving jar remains in resolved state.

Restarting the gemini.dbaccess.derby_1.0.0.M1-incubation gives the following error:-

And my application gives the following error:-

I am new to using eclipseLink in OSGI ,what am i missing here ?