简体   繁体   English

从EAR包调用外部OSGI捆绑包

[英]Call external OSGI bundle from EAR package

I follow this tutorial http://netbeans.org/kb/docs/javaee/maven-osgiservice-cdi.html I'm interested is it possible to replace the simple web client (WAR) package who calls the OSGI bundles with the EAR package. 我遵循本教程http://netbeans.org/kb/docs/javaee/maven-osgiservice-cdi.html我很感兴趣是否有可能用EAR替换调用OSGI捆绑包的简单Web客户端(WAR)包包。 I want to create a EAR package which can call services from external OSGI bundle. 我想创建一个EAR包,它可以从外部OSGI包中调用服务。

kind regards Peter 问候彼得

I will answer myself: Yes you can! 我会回答自己:是的,你可以的! Create a managed bean into the EAR file and implement a java interface in the OSGI bundle. 在EAR文件中创建一个托管bean,并在OSGI捆绑软件中实现java接口。 Be careful about the dependencies. 注意依赖项。

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

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