简体   繁体   English

如何在Java EE和GlassFish中使用OSGI?

[英]How to use OSGI in Java EE and GlassFish?

I have an application (implemented with JPA, EJB, JSF and PrimeFaces). 我有一个应用程序(用JPA,EJB,JSF和PrimeFaces实现)。

I'd like to convert this application to an OSGI bundle, but I don't know how to start with *OSGI in GlassFish. 我想将此应用程序转换为OSGI捆绑软件,但我不知道如何在GlassFish中以* OSGI开头。

I think this is a great resource [1] for understanding OSGI concept. 我认为这是理解OSGI概念的绝佳资源[1]。

[1] http://njbartlett.name/osgibook.html [1] http://njbartlett.name/osgibook.html

This should give you a good start 这应该给你一个好的开始

http://docs.oracle.com/cd/E26576_01/doc.312/e24930/osgi.htm http://docs.oracle.com/cd/E26576_01/doc.312/e24930/osgi.htm

Fortunately glassfish has pretty good support for JEE in OSGi. 幸运的是,glassfish对OSGi中的JEE提供了很好的支持。 So your task is a bit simpler than for other OSGi containers. 因此,您的任务比其他OSGi容器要简单一些。 Still keep in mind like dns pointer out above that such a migration can be quite a challenge. 仍要记住,就像上面的dns指针一样,这样的迁移可能是一个很大的挑战。 So your best bet is to get an external OSGi expert on the team. 因此,最好的选择是让外部OSGi专家加入团队。

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

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