Salmat interview question

ejb2 vs ejb 3 ,when to use which.. and ejb transaction