Transactions in entity bean

Discussions

EJB design: Transactions in entity bean

  1. Transactions in entity bean (1 messages)

    1) Is it possible to start a transaction in an entity bean, If not then why?

    2) Why is the SessionSynchroniztion Interface not defined for the entity bean?
  2. Transactions in entity bean[ Go to top ]

    Basically Entity beans are designed to represent database data. It is just a O/R mapping object. They are not supposed to implement any business logic. You need transaction when you implement a business logic. To implement ejb has Session Beans. So there is no need to create any transaction in entity bean or to implement SessionSynchronization interface.

    Hope this help,
    Senthil.