Glassfish 2.1 Spring 3.0 - 设置方法 - 无 Web 应用程序
我用谷歌搜索了一下,没有找到关于如何开始在 glassfish 容器中设置 spring 的令人满意的信息。
起点是:
- Glassfish 2.1(请不要讨论版本,因为我们被迫使用这个)
- Spring(最好是 3.0 版本,但如果不可能,也允许使用较低版本)
- EJB 3.0(因此我想利用拦截器机制在无状态 bean 上注入 spring bean,请参阅:http://static .springsource.org/spring/docs/3.0.x/spring-framework-reference/html/ejb.html#ejb-implementation-ejb3 )
我们没有 Web 应用程序因此,我现在不知道如何将 spring 集成到我们的 Ear 文件中。
因此我有以下问题:
如何配置 glassfish/ear 文件才能识别 spring xml 文件? 我应该在哪里放置以及如何命名 spring xml 文件,以便 spring 框架正确识别它们?
如果有人能帮助找到合适的起点,那就太好了。
亲切的问候, 沃尔特
I have googled around and I have not found satisfying informations about how to start to setup spring in a glassfish container.
Starting point is:
- Glassfish 2.1 (no discussions about the version please cause we are forced to use this)
- Spring (preferrable version 3.0 but if not possible also lower version is allowed)
- EJB 3.0 (therefore I want to make use of the interceptor mechanism to inject a spring bean on the the stateless bean see: http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/ejb.html#ejb-implementation-ejb3 )
We don't have a web application in the ear file therefore I am lost at the moment how I could integrate spring into our ear file.
Therefore I have the following questions:
How do I have to configure glassfish/ear file to recognize the spring xml files?
Where should I place and how should I name the spring xml files so they are recognized correctly by the spring framework?
It would be great if anybody could help to find the approriate starting point.
Kind regards,
Walter
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论