不可能的技术堆栈? Jboss/Seam/Resteasy/Hibernate/Maven
StackOverflow 的好心人大家好!
我尝试了很多关于使用 JBoss Seam 的教程,并查看了 Seam 发行版中的“Restbay”示例。但我无法使用以下技术堆栈获得有效的 REST Web 服务:
- JBoss 4.2.3
- Seam 2.2.*
- Resteasy 2.2.*
- Hibernate 3
- Maven 3(关键)
我一直在尝试的项目布局如下所示:
ProjX< /strong>
- pom.xml
- ProjX-ear
- ProjX-ejb
- ProjX-web
EAR 布局如下所示:
ProjX.ear
- lib
- META-INF
- ProjX-web.war
- ProjX-ejb.jar
这不可能吗?最终,我希望将 REST 资源视为 Seam 操作组件,并获得“无缝”注入的好处。在强大的 JBoss 4.2 应用服务器上这是不可能实现的成就吗?
(注意:我正在使用 maven-ear-plugin 来布局我的 EAR)
[更新:这并非不可能,我几乎已经拥有它了!我刚刚没时间了...]
Hello good people of StackOverflow!
I've tried many tutorials on using JBoss Seam and looked at the "Restbay" example in the Seam distro. But I cannot get a working REST web service with the following tech stack:
- JBoss 4.2.3
- Seam 2.2.*
- Resteasy 2.2.*
- Hibernate 3
- Maven 3 (critical)
The project layout I've been attempting looks like:
ProjX
- pom.xml
- ProjX-ear
- ProjX-ejb
- ProjX-web
The EAR layout looks like:
ProjX.ear
- lib
- META-INF
- ProjX-web.war
- ProjX-ejb.jar
Is this impossible? Ultimately I want to treat my REST resources as Seam action components and reap the benefits of "seamless" injection. Is this an impossible achievement on the mighty JBoss 4.2 Application Server?
(Note: I'm using the maven-ear-plugin to layout my EAR)
[UPDATE: this is not impossible I almost had it! I just ran out of time...]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
很久以前你就问过,但也许你仍然有兴趣听到(如果你还没有自己发现的话)Seam 2.3 是 在 alpha 版本中可用,它基于 Maven 构建。
除此之外,您绝对应该放弃 JBoss 4.x,至少采用 5.1。
如果您使用 REST Web 服务,您不妨迈出更大的一步,切换到 Java EE 6。
Long time ago that you asked, but maybe you are still interested to hear (if you haven't already found out for yourself) that Seam 2.3 is available in alpha version, which is based on a maven build.
Besides that you should definitely abandon JBoss 4.x and at least take 5.1.
And if you use REST webservices, you may as well take a bigger step and switch to Java EE 6.