实现小型 EJb 容器
有没有通用的文档来研究ejb容器是如何实现的?换句话说,是否有一个文档可以详细了解如何实现一个可以加载和管理bean(至少是会话bean)的小型ejb容器。我在任何开源 ejb 容器页面中找不到有关容器内部工作原理的信息。虽然我从开发指南中得到了一些信息。
谢谢 V
Is there any generic document to study how the ejb container is implemented? in other words, is there a document to know more about how to implement a small ejb container that can load and manage beans, atleast session beans. I cannot find in any opensource ejb containers page information about the inner workings of the container. although i got some info from the developes guide.
thanks
V
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这个问题的答案几乎太大了.. EJB 和 Java EE 有很多方面。
我的一些 stackoverflow 答案有一些“幕后”信息:
不在 stackoverflow 上,但也不错:
- 了解容器管理的 JPA
The answer to the question is almost too big.. there are so many aspects of EJB and Java EE.
Some stackoverflow answers of mine that have some "under the covers" information:
Not on stackoverflow but also good:
- Understanding Container-Managed JPA
您可能希望从 EJB 规范和 API 类开始。
You'd probably want to start with the EJB specification and the API classes.
您可以尝试查看现有项目的源代码,例如 JBoss 或 JBoss Embedded ejb 容器,这应该会有很大帮助。你可以按照你想要的方式实现规范,只要符合规范,如何实现并不重要(当然如果你想兼容 J2EE)
You can try to look at the sources of the existing projects like JBoss or JBoss Embedded ejb container, that should help a lot. You can implement the specs the way you want, it doesn't matter how you do it as long as you conform to the specs (if you want to be J2EE compilant of course)