/** * <P> * RegistryManagedRuntime cannot suspend transactions, but WebSphere * provides an interface to submit work outside of the current tran. * </P> */ public void doNonTransactionalWork(Runnable runnable) throws RuntimeException, UnsupportedOperationException { try { UOWManagerFactory.getUOWManager().runUnderUOW( UOWManager.UOW_TYPE_LOCAL_TRANSACTION, false, new DelegatingUOWAction(runnable)); } catch(UOWActionException e ) { RuntimeException re = new RuntimeException(e.getMessage()); re.initCause(e); throw re; } catch(UOWException e ) { RuntimeException re = new RuntimeException(e.getMessage()); re.initCause(e); throw re; } }
/** * <P> * RegistryManagedRuntime cannot suspend transactions, but WebSphere * provides an interface to submit work outside of the current tran. * </P> */ public void doNonTransactionalWork(Runnable runnable) throws RuntimeException, UnsupportedOperationException { try { UOWManagerFactory.getUOWManager().runUnderUOW( UOWManager.UOW_TYPE_LOCAL_TRANSACTION, false, new DelegatingUOWAction(runnable)); } catch(UOWActionException e ) { RuntimeException re = new RuntimeException(e.getMessage()); re.initCause(e); throw re; } catch(UOWException e ) { RuntimeException re = new RuntimeException(e.getMessage()); re.initCause(e); throw re; } }
/** * <P> * RegistryManagedRuntime cannot suspend transactions, but WebSphere * provides an interface to submit work outside of the current tran. * </P> */ public void doNonTransactionalWork(Runnable runnable) throws RuntimeException, UnsupportedOperationException { try { UOWManagerFactory.getUOWManager().runUnderUOW( UOWManager.UOW_TYPE_LOCAL_TRANSACTION, false, new DelegatingUOWAction(runnable)); } catch(UOWActionException e ) { RuntimeException re = new RuntimeException(e.getMessage()); re.initCause(e); throw re; } catch(UOWException e ) { RuntimeException re = new RuntimeException(e.getMessage()); re.initCause(e); throw re; } }
/** * <P> * RegistryManagedRuntime cannot suspend transactions, but WebSphere * provides an interface to submit work outside of the current tran. * </P> */ public void doNonTransactionalWork(Runnable runnable) throws RuntimeException, UnsupportedOperationException { try { UOWManagerFactory.getUOWManager().runUnderUOW( UOWManager.UOW_TYPE_LOCAL_TRANSACTION, false, new DelegatingUOWAction(runnable)); } catch(UOWActionException e ) { RuntimeException re = new RuntimeException(e.getMessage()); re.initCause(e); throw re; } catch(UOWException e ) { RuntimeException re = new RuntimeException(e.getMessage()); re.initCause(e); throw re; } }