作为 Spring Web Bundle 的 JSF 2.0 应用程序
是否可以将 JSF 2.0 应用程序作为 Spring Web Bundle 运行? OSGi 对 JSF 2.0 有支持吗?我没有找到任何适用于 Apache MyFaces 2.0 的 OSGified 捆绑包。
提前感谢
is it possible to run JSF 2.0 Application as Spring Web Bundle? Is there any OSGi support for JSF 2.0? I didn't found any OSGified bundles for Apache MyFaces 2.0.
Thanx in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您仍然感兴趣。是的,这是可能的。在 Virgo 论坛上,我知道有人已经使用 PrettyFaces lib 运行它,例如
,但是您问“是否有对 JSF 2.0 的 OSGi 支持”...
事实是(如果我理解得很好...我仍在学习OSGi),您应该从另一个角度来看待它,这意味着 JSF 2 堆栈是否足够结构化/干净,以便能够更接近 OSGI 化的禅宗世界。 :)
请保持此线程更新,以防您发现有用的内容。我投入了大量的时间和精力来解决这个混乱的问题,并希望能够与您分享一个不错的答案。
最美好的祝愿,
约亨
In case you're still interested. Yes it is possible. On the Virgo forums I know someone has got it running with the PrettyFaces lib e.g.
But you ask "Is there any OSGi support for JSF 2.0"...
the fact is (if I get it well... I'm still just learning OSGi) that you should look at it from the other point of view, meaning, is the JSF 2 stack structured/clean enough for being able to come nearer to the world of OSGI'ified zen. :)
Please keep this thread updated in case you find something useful. I'm putting a lot of time and effort in figuring this mess out and hope I'll be able to share a decent answer with you.
Best wishes,
Jochen
10 个月前的帖子,但如果对某人有帮助,请发布此链接:
'Virgo 3.0.0.RELEASE 上的简单 JSF 2 应用程序' -- http://www.eclipse.org/forums/index.php/mv/msg/203215/724346/#msg_724346
这是在 OSGi 环境中使用 JSF 2 的一个很好的开始(Virgo Tomcat 是具体的)。
从那里到使其与 Spring dm 一起工作是一个很短的跳跃。
创建 META-INF/spring/osgi-context.xml,在其中将 Spring bean 声明/引用为 OSGi 服务:
HTH某人。
10 month old thread, but posting this link if it helps someone:
'simple JSF 2 application on Virgo 3.0.0.RELEASE' -- http://www.eclipse.org/forums/index.php/mv/msg/203215/724346/#msg_724346
It's a great start for using JSF 2 in an OSGi envmt (Virgo Tomcat to be specific).
From there to making it work with Spring dm is a short hop.
Create a META-INF/spring/osgi-context.xml where you declare/reference your Spring bean as an OSGi service:
HTH someone.