Anandhakrishnan Venkataramanan wrote:I work in banking project . Why we use EJB ? What is the new with EJB ? How a transaction is secure in EJB ?
I am more comfortable with with
Java Spring comparatively to EJB architecture as there are lots diffrence ex : for Transaction management
EJB:
Must use a JTA transaction manager.
Supports transactions that span remote method calls.
Spring:
Supports multiple transaction environments through its PlatformTransactionManager interface, including JTA, Hibernate, JDO, and
JDBC.
Does not natively support distributed transactions—it must be used with a JTA transaction manager.
Persistence
EJB:
Supports programmatic bean-managed persistence and declarative container managed persistence.
Spring
Provides a framework for integrating with several persistence technologies, including JDBC, Hibernate, JDO, and iBATIS.