File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB3Unit Testing Capabilities

 
Nuwan Bnadara
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can some one tell me is it possible to execute em.persist() and em.merge() methods through Ejb3Unit.
 
Marcelo Zambiasi
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes... it's possible, but you must have an active transaction to change the "database" of EJB3Unit. Something like that:
 
Nuwan Bnadara
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marcelo Zambiasi wrote:Yes... it's possible, but you must have an active transaction to change the "database" of EJB3Unit. Something like that:


Hi,

Thank you very much. I've managed to do lot with EJB3Unit.

NUwan
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic