Discussion on basic concept of ejb

Discussions

EJB programming & troubleshooting: Discussion on basic concept of ejb

  1. Discussion on basic concept of ejb (2 messages)

    hi
    can any one come with me in discussing the following questions

    thanks

    somal


    --------------------------------------------------------------------
    --------------------------------------------------------------------
    Which of the following must the developer define in a bean-managed

    persistent entity bean?
       1 ejbSetSessionContext()
       2 ejbPreLoad()
       3 ejbUnsetSessionContext()
       4 ejbDeactivate()
       5 ejbPostCreate()


    ** I suppose either 2 or 4.Anybody please suggest.
    -----------------------------------------------------



    Which one of the following phenomena is NOT addressed by

    read-consistency?
       1 Non-repeatable read
       2 Cached read
       3 Phantom read
       4 Dirty read
       5 Fuzzy read

    ** No idea
    -------------------------------------------------------------------




    In the list below, which allows the maximum degree of concurrency?
       1 TRANSACTION_REPEATABLE_READ
       2 TRANSACTION_READ_COMMITTED
       3 TRANSACTION_READ_UNCOMMITTED
       4 TRANSACTION_UNREPEATABLE_READ
       5 TRANSACTION_SERIALIZABLE


    ** I suppose 3 is correct one
    -----------------------------------------------------------------


    Which one of the following exceptions is handled in a vendor-specific

    manner?
       1 Run-time exceptions
       2 User-level exceptions
       3 User-defined exceptions
       4 System-level exceptions
       5 Application-level exceptions


    ** May be 1 .
    ----------------------------------------------------------------------
  2. Discussion on basic concept of ejb[ Go to top ]

    any body help me .
  3. Discussion on basic concept of ejb[ Go to top ]

    First which version of EJB specs are you talking about. I can tell you about EJB1.1:

    1.
    In the list below, which allows the maximum degree of concurrency?
       1 TRANSACTION_REPEATABLE_READ
       2 TRANSACTION_READ_COMMITTED
       3 TRANSACTION_READ_UNCOMMITTED
       4 TRANSACTION_UNREPEATABLE_READ
       5 TRANSACTION_SERIALIZABLE

    Answer: READ UNCOMMITTED

    2.
    Which one of the following exceptions is handled in a vendor-specific

    manner?
       1 Run-time exceptions
       2 User-level exceptions
       3 User-defined exceptions
       4 System-level exceptions
       5 Application-level exceptions

    Answer: runtime exceptions