Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

Problems while accessing Synchronized method.

Thread view: 
gandhi.pathik@gmail.com - 31 Jan 2006 09:49 GMT
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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.