Hi
I am facing an issue when I run my application in a multithreaded environment. Specifically I am facing deadlock problems even with as few as 5 threads. The same application when run seems to run fine on a MySQL with as many as 60 threads. Any pointers on how to resolve this in MSSQL?
The scenario is something like this:
I am trying to add an object called 'subscriber' with all the relevant details. The relationships are as follows.
There is a subscriber object(table) with many properties, subID being the primary key.
This object has a one-to-one mapping with another object 'individual', foreign key relationships with two other tables 'AdBook' and 'SubRole' with 'subID' property being the binding property.
The 'individual' object has an 'indID' to be the primary key. This object has a many-to-one relationship with the 'subscriber' object (subID). Also has a many-to-one relationship with a 'contact' object with 'contactID' property being the binding one.
The 'SubRole' has a composite key.... key-many-to-one with 'subscriber' object (subID) and key-many-to-one with yet another object called 'role'
The 'AdBook' object has a many-to-one relationship with 'subscriber' object (subID) and a foreign key with respect to the object 'contact' with 'adID' as binding property.
The 'contact' object has a many-to-one with 'AdBook' with 'adID' property, a 'contactID' as primary key, and a one-to-one relation with the 'individual' object
When I try to add a subscriber with multiple threads, I'm facing deadlock issues.
I'm using HibernateTemplate (Hibernate 3.0final version and Spring 1.2RC1)
Thanks
_________________ What is NOT is not indicative of what IS.
-muro
|