Colin Chalmers wrote:
>
> Hi all,
>
> Following my question yesterday concerning transactions I am trying to
> implement at least the very basic of transactions, without success
>
> I'm sure I'm doing something stupid. To begin with I may be trying to
> control the transaction at a higher level the necessary??
>
> I see in the BasePeer class that there is a beginTransaction method that
> takes a database name as Input and returns a dbConnection. How does this tie
> in with the peer principle. For example I tried writing the following and
> got an exception which doesn't surprise me.
>
> DBConnection dbC = TurbineUserPeer.beginTransaction("turbinenew");
Unless you have given your db the key "turbinenew" in TR.props (which I
am not sure if it is possible anymore, see Multiple Database thread) you
would use the key "default".
John McNally
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]