CoolInterview.com - World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!



    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS WEBSITE RELATED WEBLOGIC DETAILS
    Question :
    Why would a client application use JTA transactions?
    Category Weblogic Interview Questions
    Rating (0.4) By 613 users
    Added on 9/22/2009
    Views 1482
    Rate it!
    Answers:

    One possible example would be a scenario in which a client needs to employ two (or more) session beans, where each session bean is deployed on a different EJB server and each bean performs operations against external resources (for example, a database) and/or is managing one or more entity beans. In this scenario, the client?s logic could required an all-or-nothing guarantee for the operations performed by the session beans; hence, the session bean usage could be bundled together with a JTA UserTransaction object. In the previous scenario, however, the client application developer should address the question of whether or not it would be better to encapsulate these operations in yet another session bean, and allow the session bean to handle the transactions via the EJB container. In general, lightweight clients are easier to maintain than heavyweight clients. Also, EJB environments are ideally suited for transaction management.

    Context c = new InitialContext(); UserTransaction ut = (UserTransaction)
    c.lookup("java:comp/UserTransaction");
    ut.begin();
    // perform multiple operations...
    ut.commit() ...



    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer
    What is the difference between creating a distributed application using RMI and using a EJB architecture?
    View Answer
    What happens if remove( ) is never invoked on a session bean?
    View Answer
    What are the special design care that must be taken when you work with local interfaces?
    View Answer
    Can you briefly describe local interfaces?
    View Answer
    What are the enhancements in EJB 2.0 with respect to CMP?
    View Answer
    What are the enhancements in EJB 2.0 specification with respect to Asynchronous communication?
    View Answer
    What is the function of T3 in WebLogic Server?
    View Answer
    What causes Java.io exceptions in the log file of WebLogic Server?
    View Answer
    How do I increase WebLogic Server memory?
    View Answer
    I plugged in a version of Apache Xalan that I downloaded from the Apache Web site, and now I get errors when I try to transform documents. What is the problem?
    View Answer
    Is an XSLT processor bundled in WebLogic Server?
    View Answer
    Do EJBs have to be homogeneously deployed across a cluster? Why?
    View Answer
    Must my bean-managed persistence mechanism use the WebLogic JTS driver?
    View Answer
    What is the Max amount of information that can be saved in a Session Object?
    View Answer
    Components of JNDI?
    View Answer
    What?s the difference between JNDI lookup(), list(), listBindings(), and search()? -
    View Answer
    What is the Java Authentication and Authorization Service (JAAS) 1.0?
    View Answer
    What technologies are included in J2EE?
    View Answer
    What are the two important TCP Socket classes?
    View Answer
    What is the difference between URL instance and URLConnection instance? -
    View Answer


    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL Weblogic Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2014 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes


    Cache = 0.03125 Seconds