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