0

What exactly are the real benefits of EJB transaction management over Spring transaction management

Chaitanya Gudala
  • 305
  • 1
  • 3
  • 22
  • 3
    They do the same thing, transaction management. Some people like JavaEE/EJB, some prefer Spring. – pap Sep 05 '12 at 06:38
  • What exactly do you mean by "EJB / Spring transaction management"? The transaction attributes you can use/define in both cases or the transaction managers functionality / performance? – Piotr Nowicki Sep 18 '12 at 13:27

1 Answers1

2

One of the greatest advantages is that in Spring you need to configure transaction management by yourself, while in EJB you simply put annotations. More on EJB vs Spring transactions:

Miljen Mikic
  • 14,765
  • 8
  • 58
  • 66
  • I do believe you can configure transaction attributes in Spring with annotations as well. The only additional (configuration) work is to define what transaction manager you want to use in Spring Framework. – Piotr Nowicki Sep 18 '12 at 13:52