| Author |
How to use JUnit and EJB3
|
Georg Joo
Ranch Hand
Joined: Feb 24, 2004
Posts: 49
|
|
Hi I want to test my EJB3 with JUnit. But I get allways following error : The setup methode looks like : My persistence.xml : What can I do ? Where is the right place for the persistence.xml file ?
|
SCJP, SCWCD, SCBCD<br /> <br />Vienna, Austria
|
 |
Jaikiran Pai
Marshal
Joined: Jul 20, 2005
Posts: 8143
|
|
|
I havent worked with EJB3 much, but EJBs are server side components and they cannot be tested with JUnit. You might have to use Cactus instead, which is very similar to JUnit but allows you to test server side components.
|
[My Blog] [JavaRanch Journal]
|
 |
Georg Joo
Ranch Hand
Joined: Feb 24, 2004
Posts: 49
|
|
Hi I have the book "Pro EJB 3" of Apress. There is a description to test EJB3 with JUnit. It schoud be possible. But I will take a look to Cactus. Thanks Georg
|
 |
 |
|
|
subject: How to use JUnit and EJB3
|
|
|