Problems while accessing Synchronized method.

G

gandhi.pathik

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
 
A

Arnaud B.

Hi,

Your method is not synchronized, it just has "synchronize" as its name !

You probably meant public synchronized void myMethod(){}

Cheers,

Arnaud
 
G

gandhi.pathik

ya it is synchronized,, by mistake it was written like synchronize

sorry for that mistake

pl. give me solution

Regards,
pathik
 
M

Monique Y. Mudama

ya it is synchronized,, by mistake it was written like synchronize

sorry for that mistake

pl. give me solution

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top