Hi,
I have two database connections set up for my
application. However I'm unable to perform any updates
whenever I use the non-default database resource.
However the selects work fine.

The code that I have is

Connection conn = Torque.getConnection("NonDefault");
Criteria crit = new Criteria();
... add some condition to the criteria....

List list = ABCPeer.doSelect(crit,conn);
Iterator i = list.iterator();
while(i.hasNext){
  ABC abc = (ABC)i.next();
  abc.setStatus("updated");
  abc.save(conn);
}

In the above code sample the select happens but the
updates dont.
Can anyone help me with this???
Thanks
TS


=====
-------------------
Tanay Srivastava
Engineering,
Softcoin Inc
http://www.softcoin.com
650-218-5647(cell)
650-624-3873(O)

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to