从 EAR 包调用外部 OSGI 包
我遵循本教程 http://netbeans.org/kb/docs/javaee /maven-osgiservice-cdi.html 我感兴趣的是是否可以用 EAR 包替换调用 OSGI 包的简单 Web 客户端 (WAR) 包。我想创建一个 EAR 包,它可以从外部 OSGI 包调用服务。
亲切的问候 彼得
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. I want to create a EAR package which can call services from external OSGI bundle.
kind regards
Peter
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我自己来回答:
是的,你可以!在 EAR 文件中创建一个托管 bean,并在 OSGI 包中实现一个 java 接口。小心依赖关系。
I will answer myself:
Yes you can! Create a managed bean into the EAR file and implement a java interface in the OSGI bundle. Be careful about the dependencies.