基于 EJB 的项目的想法

发布于 2024-10-09 14:09:20 字数 434 浏览 0 评论 0原文

我正在开始学习 EJB,并希望通过创建一个玩具项目来探索它,在其中我可以理解概念并掌握无状态 bean、与持久层集成等基本工具。问题在于为这样的项目找到好主意。以下是一些要求:

  • 该项目必须取自现实生活。请不要提供计算器或获取服务器时间之类的示例。
  • 它必须显示EJB 的优点
  • 它必须使用至少 2 个 EJB 功能。例如,与JPA和JMS的集成,但不是纯粹的逻辑。如果您不使用 EJB 的炫酷功能,那么它的理由是什么?
  • 不得花费太多时间来实施。这是一个玩具项目,我不想花两个月的时间来做一些事情,那样以后就会被扔掉。

那么,有什么想法吗?

I'm starting learning EJBs and would like to explore it by creating a toy project, where I could understand concepts and get hand in base tools like stateless beans, integration with persistence layer and so on. The problem is in finding good idea for such a project. Here are some requirements:

  • The project must be taken from real life. No examples like calculator or getting server's time, please.
  • It must show advantages of EJBs.
  • It must use at least 2 EJB features. For instance, integration with JPA and JMS, but not pure logic. What is the reason for EJBs if you don't use its cool features?
  • It must not take too much time to implement. It's a toy project, I don't want to expand 2 months in doing something, that will be thrown out later.

So, any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦途 2024-10-16 14:09:20

我最好的建议永远是创造一些你会觉得有用和有趣的东西。它会让你保持动力。

如果您仍然想不出什么,我会推荐日历或地址簿。我可以看到哪里会有清晰的分层架构(服务 + 持久性)、各种视图(桌面、Web 和移动),以及利用消息传递获得良好优势的可能性(例如,发送更改警报)。

My best recommendation would always be to create something that you would find useful and interesting. It'll keep your motivation up.

If you still can't think of something, I'd recommend a calendar or address book. I can see where there'd be a clear layered architecture (services + persistence), a variety of views (desktop and web and mobile), and the possibility of using messaging to good advantage (e.g., alerts sent for changes).

不及他 2024-10-16 14:09:20

著名的生命游戏似乎是个好主意。单元是持久性单元、JSF、Web bean + ejb(用于显示工作区域)、计划 bean(用于将其启动)。游戏的逻辑可以在EJB 或JMS(甚至两者)中实现。你可以扩展原来的逻辑,引入新的对象或规则,并最终获得诺贝尔社会建模成就奖:)

Famous Game of Life seems to be a good idea. Cells are persistence units, JSF, web beans + ejb to display the working area, scheduled beans - to put it in motion. Game's logic can be implemented in EJB or JMS (or even both). You could extend original logic, introduce new objects or rules and finally get Nobel prize for achievements in social modeling :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文