I am using the Spring Transaction Synchronization Manager. By using this manager I register a new sync transaction sync adapter and I then override the end status method. The Transaction Synchronization Adapter should be in the form of a commissions (0), but it is coming in active form (0) The piece is:
Transaction Synchronization Manager. Registry Synchronization (New Transaction Synchronization Adapter) {Zero Before Public} (Integer)} {System.out.println ("Status Status" + Status is); System.out.println ("Coming after completion"); If (condition == position. STATUS_COMMITTED) {last string memcachedKey = getMemcachedKey (pOrderId); System.out.println ("follow-up of the key to the memorycat key is inside" + memcachedKey); McmatesMemCachedClient.set (MAMCCHADKEY, PROVISIONING_PASS); If (LOGGER.isDebugEnabled ()) {LOGGER.debug ("Tx commited. Memcached: key =" + memcachedKey + ", value =" + PROVISIONING_PASS) "}}}}); }
Do not use the status. STATUS_COMMITTED , it does nothing to do with spring instead of
transaction synchronization. Use STATUS_COMMITTED .
Comments
Post a Comment