support for transactions


EJB design: support for transactions

  1. support for transactions (6 messages)

    Support for transactions is an essential component of the Enterprise JavaBeans architecture. The enter-prise
    Bean Provider and the client application programmer are not exposed to the complexity of distrib-uted
    transactions. The Bean Provider can choose between using programmatic transaction demarcation
    in the enterprise bean code (this style is called bean-managed transaction demarcation) or declarative
    transaction demarcation performed automatically by the EJB Container (this style is called con-tainer-
    managed transaction demarcation).
    With bean-managed transaction demarcation, the enterprise bean code demarcates transactions using
    the javax.transaction.UserTransaction interface. All resource manager [23] accesses
    between the UserTransaction.begin and UserTransaction.commit calls are part of a
    With container-managed transaction demarcation, the Container demarcates transactions per instruc-tions
    provided by the Application Assembler in the deployment descriptor. These instructions, called
    transaction attributes, tell the container whether it should include the work performed by an enterprise
    bean method in a client’s transaction, run the enterprise bean method in a new transaction started by the
    Container, or run the method with “no transaction”

    Regardless whether an enterprise bean uses bean-managed or container-managed transaction demarca-tion,
    the burden of implementing transaction management is it on the EJB Container and on the Server Provider.
    Does the EJB Container and Server implement the necessary low-level transaction protocols, such as the
    two-phase commit protocol between a transaction manager and a database system or JMS provider,
    transaction context propagation, and distributed two-phase commit?


    Threaded Messages (6)

  2. support for transactions[ Go to top ]

    The burden is indeed on the container/server. Please see my presentation on transaction processing from JavaOne.

    Dave Wolf
    Internet Applications Division
  3. support for transactions[ Go to top ]

    Can you provide a hyperlink to your representation slides at JavaOne?
  4. support for transactions[ Go to top ]

    You can find it here

    Dave Wolf
    Internet Applications Division
  5. support for transactions[ Go to top ]

    Thanks Dave! It was very nicely laid out.

  6. support for transactions[ Go to top ]

    Excellent presentation! It cleared up many previously unanswered questions in my mind. Why didn't you let us East-costers who cannot afford to attend JavaOne in CA know about it earlier?
  7. support for transactions[ Go to top ]

    thanxs a lot Dave