Re: Problems while accessing Synchronized method.



Hi,

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

You probably meant public synchronized void myMethod(){}

Cheers,

Arnaud

<gandhi.pathik@xxxxxxxxx> a écrit dans le message de
news:1138700978.821070.64520@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> 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
>


.



Relevant Pages

  • Re: synchronized confusion!
    ... > public synchronized void broadcast (String message) { ... If you want to synchronize this method regardless of what object it is ...
    (comp.lang.java.programmer)
  • Re: Primary keys/rep IDs and other basic (not for me!) things
    ... I have a database that will ... can have a replica that can ... want to synchronize design changes in the front end -- you just want ... only real complication is relinking to the back end, ...
    (microsoft.public.access.replication)
  • Pocket Access sync problems with pc replica
    ... Each PDA will have a replica of the database on it. ... The order of which tables synchronize first etc cannot ... I can write code to get around the problems Active Sync has, ...
    (microsoft.public.access.replication)
  • Pocket Access sync problems
    ... Each PDA will have a replica of the database on it. ... The order of which tables synchronize first etc cannot ... I can write code to get around the problems Active Sync has, ...
    (microsoft.public.access.setupconfig)
  • Developing and syncing MS Access on with Pocket Access
    ... Each PDA will have a replica of the database on it. ... The order of which tables synchronize first etc cannot ... I can write code to get around the problems Active Sync has, ...
    (microsoft.public.access.devtoolkits)