/** * Gets the GlobalTransaction ID of the WebSphere managed transaction. * If no Global Transaction is active null will be returned. * * @return Null if a global transaction is not active or if an error * occurs. byte[] id if a global transaction is active. */ private byte[] getGlobalId() { try { return (byte[]) _getGlobalId.invoke(_extendedTransaction, null); } catch (Exception e) { throw new InvalidStateException(_loc .get("was-reflection-exception")).setCause(e); } }
/** * Gets the GlobalTransaction ID of the WebSphere managed transaction. * If no Global Transaction is active null will be returned. * * @return Null if a global transaction is not active or if an error * occurs. byte[] id if a global transaction is active. */ private byte[] getGlobalId() { try { return (byte[]) _getGlobalId.invoke(_extendedTransaction, null); } catch (Exception e) { throw new InvalidStateException(_loc .get("was-reflection-exception")).setCause(e); } }
/** * Gets the GlobalTransaction ID of the WebSphere managed transaction. * If no Global Transaction is active null will be returned. * * @return Null if a global transaction is not active or if an error * occurs. byte[] id if a global transaction is active. */ private byte[] getGlobalId() { try { return (byte[]) _getGlobalId.invoke(_extendedTransaction, null); } catch (Exception e) { throw new InvalidStateException(_loc .get("was-reflection-exception")).setCause(e); } }
/** * Gets the GlobalTransaction ID of the WebSphere managed transaction. * If no Global Transaction is active null will be returned. * * @return Null if a global transaction is not active or if an error * occurs. byte[] id if a global transaction is active. */ private byte[] getGlobalId() { try { return (byte[]) _getGlobalId.invoke(_extendedTransaction, null); } catch (Exception e) { throw new InvalidStateException(_loc .get("was-reflection-exception")).setCause(e); } }
/** * Gets the GlobalTransaction ID of the WebSphere managed transaction. * If no Global Transaction is active null will be returned. * * @return Null if a global transaction is not active or if an error * occurs. byte[] id if a global transaction is active. */ private byte[] getGlobalId() { try { return (byte[]) _getGlobalId.invoke(_extendedTransaction, null); } catch (Exception e) { throw new InvalidStateException(_loc .get("was-reflection-exception")).setCause(e); } }
/** * Throw an exception if the factory is closed. The exact message and * content of the exception varies whether TRACE is enabled or not. */ private void assertOpen() { if (_closed) { if (_closedException == null) // TRACE not enabled throw new InvalidStateException(_loc .get("closed-factory-notrace")); else throw new InvalidStateException(_loc.get("closed-factory")) .setCause(_closedException); } }
/** * Throw an exception if the factory is closed. The exact message and * content of the exception varies whether TRACE is enabled or not. */ public void assertOpen() { if (_closed) { if (_closedException == null) // TRACE not enabled throw new InvalidStateException(_loc .get("closed-factory-notrace")); else throw new InvalidStateException(_loc.get("closed-factory")) .setCause(_closedException); } }
/** * Throw an exception if the factory is closed. The exact message and * content of the exception varies whether TRACE is enabled or not. */ public void assertOpen() { if (_closed) { if (_closedException == null) // TRACE not enabled throw new InvalidStateException(_loc .get("closed-factory-notrace")); else throw new InvalidStateException(_loc.get("closed-factory")) .setCause(_closedException); } }
/** * Throw an exception if the factory is closed. The exact message and * content of the exception varies whether TRACE is enabled or not. */ public void assertOpen() { if (_closed) { if (_closedException == null) // TRACE not enabled throw new InvalidStateException(_loc .get("closed-factory-notrace")); else throw new InvalidStateException(_loc.get("closed-factory")) .setCause(_closedException); } }
/** * Register for synchronization with a WebSphere managed transaction via * the extendedJTATransaction interface. */ public void registerSynchronization(Synchronization arg0) throws IllegalStateException, RollbackException, SystemException { if (_extendedTransaction != null) { try { _registerSync.invoke(_extendedTransaction, new Object[] { new WASSynchronization(arg0) }); } catch (Exception e) { throw new InvalidStateException(_loc .get("was-reflection-exception")).setCause(e); } } else { throw new InvalidStateException(_loc.get("was-lookup-error")); } }
/** * Throw an exception if the factory is closed. The exact message and * content of the exception varies whether TRACE is enabled or not. */ public void assertOpen() { if (_closed) { if (_closedException == null) // TRACE not enabled throw new InvalidStateException(_loc .get("closed-factory-notrace")); else throw new InvalidStateException(_loc.get("closed-factory")) .setCause(_closedException); } }
/** * Register for synchronization with a WebSphere managed transaction via * the extendedJTATransaction interface. */ public void registerSynchronization(Synchronization arg0) throws IllegalStateException, RollbackException, SystemException { if (_extendedTransaction != null) { try { _registerSync.invoke(_extendedTransaction, new Object[] { new WASSynchronization(arg0) }); } catch (Exception e) { throw new InvalidStateException(_loc .get("was-reflection-exception")).setCause(e); } } else { throw new InvalidStateException(_loc.get("was-lookup-error")); } }
/** * Register for synchronization with a WebSphere managed transaction via * the extendedJTATransaction interface. */ public void registerSynchronization(Synchronization arg0) throws IllegalStateException, RollbackException, SystemException { if (_extendedTransaction != null) { try { _registerSync.invoke(_extendedTransaction, new Object[] { new WASSynchronization(arg0) }); } catch (Exception e) { throw new InvalidStateException(_loc .get("was-reflection-exception")).setCause(e); } } else { throw new InvalidStateException(_loc.get("was-lookup-error")); } }
/** * Register for synchronization with a WebSphere managed transaction via * the extendedJTATransaction interface. */ public void registerSynchronization(Synchronization arg0) throws IllegalStateException, RollbackException, SystemException { if (_extendedTransaction != null) { try { _registerSync.invoke(_extendedTransaction, new Object[] { new WASSynchronization(arg0) }); } catch (Exception e) { throw new InvalidStateException(_loc .get("was-reflection-exception")).setCause(e); } } else { throw new InvalidStateException(_loc.get("was-lookup-error")); } }
/** * Register for synchronization with a WebSphere managed transaction via * the extendedJTATransaction interface. */ public void registerSynchronization(Synchronization arg0) throws IllegalStateException, RollbackException, SystemException { if (_extendedTransaction != null) { try { _registerSync.invoke(_extendedTransaction, new Object[] { new WASSynchronization(arg0) }); } catch (Exception e) { throw new InvalidStateException(_loc .get("was-reflection-exception")).setCause(e); } } else { throw new InvalidStateException(_loc.get("was-lookup-error")); } }