db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattba...@apache.org
Subject cvs commit: db-ojb/src/jca/org/apache/ojb/otm/connector JCAKit.java OTMJCAConnection.java
Date Mon, 18 Aug 2003 16:29:16 GMT
mattbaird    2003/08/18 09:29:16

  Modified:    src/jca/org/apache/ojb/otm/connector JCAKit.java
                        OTMJCAConnection.java
  Log:
  pass the appropriate connection type.
  
  Revision  Changes    Path
  1.2       +6 -1      db-ojb/src/jca/org/apache/ojb/otm/connector/JCAKit.java
  
  Index: JCAKit.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/jca/org/apache/ojb/otm/connector/JCAKit.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JCAKit.java	1 Jul 2003 21:04:27 -0000	1.1
  +++ JCAKit.java	18 Aug 2003 16:29:16 -0000	1.2
  @@ -125,7 +125,12 @@
   
   	public Transaction getTransaction(OTMConnection otmConnection)
   	{
  -		return getKit().getTransaction(otmConnection);
  +		if (otmConnection instanceof OTMJCAConnection)
  +		{
  +			return getKit().getTransaction(((OTMJCAConnection)otmConnection).getConnection());
  +		}
  +		else
  +			return getKit().getTransaction(otmConnection);
   	}
   
   	public Swizzling getSwizzlingStrategy()
  
  
  
  1.8       +5 -0      db-ojb/src/jca/org/apache/ojb/otm/connector/OTMJCAConnection.java
  
  Index: OTMJCAConnection.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/jca/org/apache/ojb/otm/connector/OTMJCAConnection.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- OTMJCAConnection.java	11 Aug 2003 20:35:51 -0000	1.7
  +++ OTMJCAConnection.java	18 Aug 2003 16:29:16 -0000	1.8
  @@ -227,4 +227,9 @@
   			throw new OTMConnectionRuntimeException("Connection handle is not currently associated
with a ManagedConnection");
   		}
   	}
  +
  +	OTMConnection getConnection()
  +	{
  +		return m_managedConnection.getConnection();
  +	}
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message