简体   繁体   English

Arquillian JAVA EE 5和JBoss 4.2

[英]Arquillian JAVA EE 5 and JBoss 4.2

I now it's a pretty peculiar, uninteresting and old combination of application server and JVM version but that is what's being used in my company nowadays. 现在,它是应用程序服务器和JVM版本的一种非常特殊,无趣的旧组合,但这就是当今我公司所使用的。 I would need to be able to test EJB3 components with JTA(TransactionManagementType.BEAN) and access to database through JPA 1.0/Hibernate 我将需要能够使用JTA(TransactionManagementType.BEAN)测试EJB3组件并通过JPA 1.0 / Hibernate访问数据库

I've been struggling with this one and a half day by now, with very little luck so far. 到目前为止,我已经为这一半天苦苦挣扎,到目前为止运气很小。 I found some answers here in Stackoverflow and in JBoss Community forums but all of them involve using Java 6. I've already got tests of this kind running using OpenEJB (written without Arquillian) but -hopefully- this year we will be migrating to a new application server and it would very useful to have the same set of tests in Arquillian to be able to check that EJBs that are working now on JBoss 4.2 will work too in another newer application server (likely to be JBoss 7) 我在Stackoverflow和JBoss社区论坛中找到了一些答案,但是它们都涉及使用Java6。我已经使用OpenEJB(没有Arquillian编写)运行了这种测试,但是-希望-今年我们将迁移到新的应用程序服务器,并且在Arquillian中具有相同的测试集对检查现在在JBoss 4.2上工作的EJB在另一台较新的应用程序服务器(也可能是JBoss 7)中也可以工作非常有用。

Would anyone know a working Arquillian example with these requirements? 有人会知道满足这些要求的Arquillian示例吗?

Finally, after fighting a little bit more with this, I put together a solution combining Arquillian, JAVA 5, JBoss4.2 y JPA. 最后,在为此进行了更多努力之后,我提出了一个结合Arquillian,JAVA 5,JBoss4.2和JPA的解决方案。 Anyone interested can found it in this GitHub miniproject 任何有兴趣的人都可以在这个GitHub miniproject中找到它

Regards 问候

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM