使用 JBoss Arquillian 与 ShrinkWrap 来缩减打包 JBoss 模块。

huangapple 未分类评论43阅读模式
英文:

Using Jboss Arquillian with to ShrinkWrap jboss modules

问题

我有一个应用程序,其中包含以下内容:

  • 一些作为 JBoss 模块捆绑的服务器端逻辑
  • EJB 层,它被捆绑到 EAR 中
  • RESTful 层,它作为一个 war 文件捆绑在 EAR 中

EJB 和 RESTful 模块都依赖于作为 JBoss 模块的服务器端逻辑模块。这个服务器端逻辑模块对其他模块(如 guava、hibernate 和一些自定义模块)有依赖关系。

现在,我想使用 Arquillian 来编写一些针对 EJB 和 REST 层的测试。但是要做到这一点,我找不到任何关于如何在 ShrinkWrap 中包含我拥有的 JBoss 模块的参考。

我尝试查找文档,但找不到任何参考资料。我只找到了用于 JBoss 模块的 ShrinkWrap 描述符库,但没有找到如何将完整的 JBoss 模块与所需的 jar 文件一起 ShrinkWrap 的方法。

如果有人能指点我一个文档或示例,展示如何将完整的 JBoss 模块 ShrinkWrap 起来,那将非常好。

英文:

I have a application which contains the following

  • some server side logic which are bundled as a jboss module
  • The EJB layer which is bundle into the EAR
  • The RESTful layer which is bundled as a war which is in the EAR

Both the EJB and RESTful modules depends on the server side logic modules which are jboss modules. This server side logic has dependencies to other modules such as guava, hibernate, and some home grown modules as well.

Now i want to use Arquillian to write some tests to both EJB and REST layers. But to do that i cannot find any reference how i can include the jboss modules i have in the ShrinkWrap.

I tried searching for documentation but i couldn't find any reference. I only found ShrinkWrap Descriptor library for jboss modules, but not how to ShrinkWrap a complete jboss module with the required jar files.

It would be great if someone point me to a documentation or sample which shows how to ShrinkWrap a complete jboss module.

huangapple
  • 本文由 发表于 2020年7月26日 17:53:32
  • 转载请务必保留本文链接:https://java.coder-hub.com/63098585.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定