webSphereTxMgr = Class.forName( "com.ibm.ejcs.jts.jta.JTSXA" );
method = webSphereTxMgr.getMethod( "getTransactionManager", null );
_transactionManager = ( TransactionManager ) method.invoke( webSphereTxMgr, null );
}
catch( ClassNotFoundException cnfe ) {
throw new TransactionManagerAcquireException( Messages.format(
"jdo.transaction.unableToAcquireTransactionManager", cnfe.getMessage()), cnfe );
}
catch( IllegalAccessException iae ) {
throw new TransactionManagerAcquireException( Messages.format(
"jdo.transaction.unableToAcquireTransactionManager", iae.getMessage()), iae );
}
catch( InvocationTargetException ite ) {
throw new TransactionManagerAcquireException( Messages.format(
"jdo.transaction.unableToAcquireTransactionManager", ite.getMessage()), ite );
}
catch( NoSuchMethodException nsme ) {
throw new TransactionManagerAcquireException( Messages.format(
"jdo.transaction.unableToAcquireTransactionManager", nsme.getMessage()), nsme );
}
return _transactionManager;
}