File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/main/java/org/teasoft/beex/transaction Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 3030import org .teasoft .honey .osql .core .SessionFactory ;
3131
3232/**
33+ * Tran Handler for @Tran.
34+ * <br>The transaction will use same connection,
35+ * <br>it mean that all operations of same transaction will do in same dataSource.
3336 * @author Kingstar
3437 * @since 1.17
3538 */
@@ -65,10 +68,13 @@ public Object tranAround(ProceedingJoinPoint joinPoint) throws Throwable {
6568 transaction .commit ();
6669 } catch (Exception e ) {
6770 transaction .rollback ();
68- Logger .warn (e .getMessage (), e );
71+ // Logger.warn(e.getMessage(), e);
72+ Logger .warn ("Catch Exception in TranHandler.tranAround: " +e .getMessage ());
73+ Logger .info (MSG + " end." );
74+ throw e ; //fixed 2.4.0.8
6975 }
7076
71- Logger .info (MSG + " end... " );
77+ Logger .info (MSG + " end." );
7278 return returnValue ;
7379 }
7480
You can’t perform that action at this time.
0 commit comments