Java written test question 004

Source: Internet
Author: User

1 , please explain distributed transaction management?

Solution: A distributed transaction is a contributor to a transaction, a server that supports transactions, a resource server, and a transaction manager on different nodes of a different distributed system. In order to implement a distributed transaction, you need to use the two-phase commit protocol described below. Phase one: Start sending pre-submission information to all resources involved in the transaction. At this point, the resources involved in the transaction have the last chance to end the transaction unexpectedly. If either resource determines an unexpected end transaction, the entire transaction is canceled and the resource is not updated. Otherwise, the transaction will execute normally unless a catastrophic failure occurs. To prevent a catastrophic failure, updates to all resources are written to the log. These logs are permanent, so these logs are spared and can be re-updated for all resources after a failure. Stage Two: only occurs when the stage is not at the end of an exception. At this point, all resource managers that can be located and individually controlled will begin to perform real data updates. In the distributed transaction two phase commit protocol, there is a primary transaction manager responsible for acting as the Distributed Transaction Coordinator. The transaction Coordinator is responsible for the entire transaction and makes it work with other transaction managers in the network. In order to implement distributed transactions, you must use a protocol to pass transaction context information between the participants of a distributed transaction.IIOPIs such an agreement. This requires that transaction participants developed by different developers must support a standard protocol in order to achieve distributed transactions.

2 , please write out a form submitted HTML Code, table sole name is called Form1 , submitted in the form of Post , submit the address as submit.asp

Answer:

<formname= "Form1" method= "Post" action= "submit.jsp" >

<inputtype= "Submit" >

</form>

3 , please write a hyperlink and click the link to [email protected] send an e-mail.

<ahref= "mailto: [email protected]" > send e-mail </a>

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Java written test question 004

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.