Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB 3 in Action: Question  RSS feed

 
Meg Adal
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are currently using EJB 2 and testing is one of the "not so easy" thing for us.
Will EJB 3 make life easier from testing perspective?

Thanks
M.
 
Debu Panda
author
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJBs being POJOs can be unit tested. Entities can be used outside the container from JavaSE and hence can be tested easily. We discuss this in chapter 12 of the book

-Debu
 
Reza Rahman
author
Ranch Hand
Posts: 580
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Meg:

Yes, you may unit test EJB 3 beans a little easier becuase they are POJOs. You may also write pretty sophiticated integration tests by injecting data sources . This is particularly true for JPA, unlike EJB 2 entity beans.

Reza
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!