Hi, everyone..
Right now i am doing one application in which i am calling one method
which is synchronized.
( method signature is like public void synchronize(){}
in that method body i am calling two stored procedures
in First Strored procedure i am inserting data into database ,,--table1
in Second Strored procedure also i am inserting data into database
,--table2,
table1 has primary key called auctionid
where as auctionid is the foreing key of table2
when i am calling this method this method says that foreing key
conflicts..
i don't know why this is happening..
my database is MsSql
please give me solution
Thanks and Regards,
pathik gandhi
Arnaud B. - 31 Jan 2006 10:18 GMT
Hi,
Your method is not synchronized, it just has "synchronize" as its name !
You probably meant public synchronized void myMethod(){}
Cheers,
Arnaud
> Hi, everyone..
>
[quoted text clipped - 22 lines]
> Thanks and Regards,
> pathik gandhi
gandhi.pathik@gmail.com - 31 Jan 2006 10:29 GMT
ya it is synchronized,, by mistake it was written like synchronize
sorry for that mistake
pl. give me solution
Regards,
pathik
Monique Y. Mudama - 31 Jan 2006 18:08 GMT
> ya it is synchronized,, by mistake it was written like synchronize
>
[quoted text clipped - 3 lines]
>
> Regards, pathik
Please just include the code. When you say "the code is something
like ..." it doesn't instill a lot of faith in your ability to
accurately describe the problem.

Signature
monique
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html