db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Vandahl ...@apache.org>
Subject Re: Criteria needs write permissions?
Date Tue, 17 Nov 2009 19:08:19 GMT
Greg Monroe wrote:
> Connection srcConn = Torque.getConnection("databaseA");
> Connection destConn = Torque.getConnection("databaseB");

Don't want to be picky, but the recommended method is

	Connection srcConn = Transaction.begin("databaseA");

> } finally {
> 	Torque.closeConnection(srcConn);

and Transaction.commit(srcConn), respectively.

BTW: The limitations with your described approach look serious to me.
You would need a lot of comments to explain what you're about to do,
wouldn't you?

Bye, Thomas.


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


Mime
View raw message