/** * Obtain the WebSphere UOWManager from the default JNDI location * "java:comp/websphere/UOWManager". * @return the UOWManager object * @throws TransactionSystemException if the JNDI lookup failed * @see #setJndiTemplate */ protected UOWManager lookupDefaultUowManager() throws TransactionSystemException { try { logger.debug("Retrieving WebSphere UOWManager from default JNDI location [" + DEFAULT_UOW_MANAGER_NAME + "]"); return getJndiTemplate().lookup(DEFAULT_UOW_MANAGER_NAME, UOWManager.class); } catch (NamingException ex) { logger.debug("WebSphere UOWManager is not available at default JNDI location [" + DEFAULT_UOW_MANAGER_NAME + "] - falling back to UOWManagerFactory lookup"); return UOWManagerFactory.getUOWManager(); } }
/** * Obtain the WebSphere UOWManager from the default JNDI location * "java:comp/websphere/UOWManager". * @return the UOWManager object * @throws TransactionSystemException if the JNDI lookup failed * @see #setJndiTemplate */ protected UOWManager lookupDefaultUowManager() throws TransactionSystemException { try { logger.debug("Retrieving WebSphere UOWManager from default JNDI location [" + DEFAULT_UOW_MANAGER_NAME + "]"); return getJndiTemplate().lookup(DEFAULT_UOW_MANAGER_NAME, UOWManager.class); } catch (NamingException ex) { logger.debug("WebSphere UOWManager is not available at default JNDI location [" + DEFAULT_UOW_MANAGER_NAME + "] - falling back to UOWManagerFactory lookup"); return UOWManagerFactory.getUOWManager(); } }
/** * Obtain the WebSphere UOWManager from the default JNDI location * "java:comp/websphere/UOWManager". * @return the UOWManager object * @throws TransactionSystemException if the JNDI lookup failed * @see #setJndiTemplate */ protected UOWManager lookupDefaultUowManager() throws TransactionSystemException { try { logger.debug("Retrieving WebSphere UOWManager from default JNDI location [" + DEFAULT_UOW_MANAGER_NAME + "]"); return getJndiTemplate().lookup(DEFAULT_UOW_MANAGER_NAME, UOWManager.class); } catch (NamingException ex) { logger.debug("WebSphere UOWManager is not available at default JNDI location [" + DEFAULT_UOW_MANAGER_NAME + "] - falling back to UOWManagerFactory lookup"); return UOWManagerFactory.getUOWManager(); } }
/** * Obtain the WebSphere UOWManager from the default JNDI location * "java:comp/websphere/UOWManager". * @return the UOWManager object * @throws TransactionSystemException if the JNDI lookup failed * @see #setJndiTemplate */ protected UOWManager lookupDefaultUowManager() throws TransactionSystemException { try { logger.debug("Retrieving WebSphere UOWManager from default JNDI location [" + DEFAULT_UOW_MANAGER_NAME + "]"); return getJndiTemplate().lookup(DEFAULT_UOW_MANAGER_NAME, UOWManager.class); } catch (NamingException ex) { logger.debug("WebSphere UOWManager is not available at default JNDI location [" + DEFAULT_UOW_MANAGER_NAME + "] - falling back to UOWManagerFactory lookup"); return UOWManagerFactory.getUOWManager(); } }
/** * <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; } }