简体   繁体   中英

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. I would need to be able to test EJB3 components with JTA(TransactionManagementType.BEAN) and access to database through 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)

Would anyone know a working Arquillian example with these requirements?

Finally, after fighting a little bit more with this, I put together a solution combining Arquillian, JAVA 5, JBoss4.2 y JPA. Anyone interested can found it in this GitHub miniproject

Regards

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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