Presentation is loading. Please wait.

Presentation is loading. Please wait.

Implement distributed transations Management in the Campus System Zhuo Zeng.

Similar presentations


Presentation on theme: "Implement distributed transations Management in the Campus System Zhuo Zeng."— Presentation transcript:

1 Implement distributed transations Management in the Campus System Zhuo Zeng

2 Layers Three layers: 1.Presentation Layer 2.Application Layer 3.Data Mapping Layer

3 Database 3 tables:

4 Data-Mapping

5 Strust+Spring+Hibernate

6 Connection Pool <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource " destroy-method="close" p:driverClass="com.microsoft.sqlserver.jdbc.SQLServer Driver" p:jdbcUrl="jdbc:sqlserver://localhost:1433;databaseNam e=Admin" p:user="sa" p:password="123456" p:maxPoolSize="40" p:minPoolSize="1" p:initialPoolSize="1" p:maxIdleTime="20" />

7 Transaction The simplistic view of a transaction issued to the database using SQL is as follows: 1.Begin the transaction using begin transaction command. 2.Perform various deleted, update or insert operations using SQL queries. 3.If all the operation are successful then perform commit otherwise rollback all the operations.

8 Transaction PROPAGATION_REQUIRED PROPAGATION_REQUIRED PROPAGATION_SUPPORTS,readOnly

9 Login

10 Administrator

11 Student Management

12 Teacher Management

13 Course Management

14 Teacher Management System

15 Student Management System


Download ppt "Implement distributed transations Management in the Campus System Zhuo Zeng."

Similar presentations


Ads by Google