OSGI runtime inside traditional Java EE server

 ̄綄美尐妖づ 提交于 2019-12-04 18:14:26

问题


I understand it should probably be other way round (OSGI runtime hosting Java EE servers), as it is apparently already possible with glassfish.

However, our clients have extensive experience in administering traditional Java EE servers and significant investment (licenses, training etc.) Our architecture would benefit from OSGI modular architecture, but I can not ask our clients to switch from Java EE servers to OSGI runtimes.

Is there a way to install OSGI runtime as war or ear inside traditional Java EE servers, even if they will use no container-managed resources (for example thread or connection pools) nor other Java EE features like JNDI, EJB etc?

Our applications use technologies like Hibernate, Spring etc.


回答1:


You might want to look at the bridge servlet solution from Equinox. They have a special servlet (bridge servlet) that spawns an OSGi runtime, adds an OSGi HTTP service, and proxies traffic to the HTTP service (and ultimately to your servlets that register themselves to the HTTP service).



来源:https://stackoverflow.com/questions/3637679/osgi-runtime-inside-traditional-java-ee-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!