Skip to content

Commit

Permalink
SAK-29450 : Transaction control is now applied to AssignmetPeerAssess…
Browse files Browse the repository at this point in the history
…mentService to ensure data is saved when submission are assigned to students to be graded
  • Loading branch information
sinmsinm committed May 30, 2015
1 parent c92e922 commit ff48e5b
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions assignment/assignment-impl/pack/src/webapp/WEB-INF/components.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,29 @@
<property name="sessionManager" ref="org.sakaiproject.tool.api.SessionManager" />
</bean>

<bean id="org.sakaiproject.assignment.api.AssignmentPeerAssessmentService"
<bean id="org.sakaiproject.assignment.api.AssignmentPeerAssessmentService"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager">
<ref bean="org.sakaiproject.springframework.orm.hibernate.GlobalTransactionManager" />
</property>
<property name="target">
<ref bean="org.sakaiproject.assignment.api.AssignmentPeerAssessmentServiceImpl" />
</property>
<property name="transactionAttributes">
<props>
<prop key="*">PROPAGATION_REQUIRED</prop>
</props>
</property>
</bean>

<bean id="org.sakaiproject.assignment.api.AssignmentPeerAssessmentServiceImpl"
class="org.sakaiproject.assignment.impl.AssignmentPeerAssessmentServiceImpl"
singleton="true" init-method="init" destroy-method="destroy">
<property name="sessionFactory">
<ref bean="org.sakaiproject.springframework.orm.hibernate.GlobalSessionFactory" />
</property>
<property name="timeService" ref="org.sakaiproject.time.api.TimeService" />
<property name="scheduledInvocationManager" ref="org.sakaiproject.api.app.scheduler.ScheduledInvocationManager" />
<property name="scheduledInvocationManager" ref="org.sakaiproject.api.app.scheduler.ScheduledInvocationManager" />
<property name="assignmentService" ref="org.sakaiproject.assignment.api.AssignmentService"/>
<property name="securityService">
<ref bean="org.sakaiproject.authz.api.SecurityService" />
Expand Down

0 comments on commit ff48e5b

Please sign in to comment.