363364365366367368369370
return IntraVmObjectFactory.createReference ( this , getUniqueResourceName() ); } public Connection getConnection() throws SQLException { StringHeuristicMessage m = null; return getConnection ( m ); }
369370371372373374375
return getConnection ( m ); } public Connection getConnection ( String msg ) throws SQLException { return getConnection ( new StringHeuristicMessage ( msg ) ); }
7071727374757677
public AtomikosNonXAParticipant ( JtaAwareNonXaConnection connection , String name ) { heuristicMessages = new ArrayList (); this.connection = connection; heuristicMessages.add ( new StringHeuristicMessage ( "Non-XA resource '" + name + "': warning: this resource does not support two-phase commit" ) ); }
469470471472473474475476
/** * @see com.atomikos.jdbc.HeuristicDataSource#getConnection(java.lang.String) */ public Connection getConnection ( String msg ) throws SQLException { HeuristicMessage hm = new StringHeuristicMessage ( msg ); return getConnection ( hm ); }
480481482483484485486487
* java.lang.String, java.lang.String) */ public Connection getConnection ( String user , String passwd , String msg ) throws SQLException { HeuristicMessage hm = new StringHeuristicMessage ( msg ); return getConnection ( user, passwd, hm ); }
215216217218219220221222
/** * @see com.atomikos.jdbc.HeuristicDataSource#getConnection(java.lang.String) */ public Connection getConnection ( String msg ) throws SQLException { StringHeuristicMessage hm = new StringHeuristicMessage ( msg ); return getConnection ( hm ); }
226227228229230231232233
* java.lang.String, java.lang.String) */ public Connection getConnection ( String user , String passwd , String msg ) throws SQLException { StringHeuristicMessage hm = new StringHeuristicMessage ( msg ); return getConnection ( user, passwd, hm ); }
7273747576777879
public NonXAParticipant ( ThreadLocalConnection connection ) { recovered = false; heuristicMessages = new ArrayList (); this.connection = connection; heuristicMessages.add ( new StringHeuristicMessage ( "JDBC driver does not support XA!" ) ); }
219220221222223224225226
setState ( TxState.ACTIVE ); heuristicMessages_ = new Vector (); isXaSuspended_ = false; enlisted_ = false; // add default heuristic message addHeuristicMessage ( new StringHeuristicMessage ( "XA resource '" + resource.getName () + "' accessed with Xid '" + xidToHexString + "'" ) ); }
252253254255256257258259
} private void switchToHeuristicState ( String opCode , TxState state , XAException cause ) { String errorMsg = interpretErrorCode ( resourcename_ , opCode , xid_ , cause.errorCode ); addHeuristicMessage ( new StringHeuristicMessage ( errorMsg ) ); setState ( state ); }