Implement distributed transations Management in the Campus System Zhuo Zeng
Layers Three layers: 1.Presentation Layer 2.Application Layer 3.Data Mapping Layer
Database 3 tables:
Data-Mapping
Strust+Spring+Hibernate
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" />
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.
Transaction PROPAGATION_REQUIRED PROPAGATION_REQUIRED PROPAGATION_SUPPORTS,readOnly
Login
Administrator
Student Management
Teacher Management
Course Management
Teacher Management System
Student Management System