Hi,
why don't you test your EJBs the same way your client would use them (connect to the
server, get EJB, call methods)? This way, e.g your entity manager will work, you will use
the same persistence.xml as the EJB.
The approach described in
http://escx.blogspot.com/2007/03/testing-ejb3-jpa-with-maven2.html seems to ignore all the
server related things like security, transactions, injection and just tests the plain EJB
methods. So the tests will not be like reality.
Hope this helps
Wolfgang
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182596#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...