If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Lock in share mode problem using Innodb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-14-04, 13:43
mette mette is offline
Registered User
 
Join Date: Mar 2004
Location: London, uk & Denmark
Posts: 5
Question Lock in share mode problem using Innodb

I have written an web application that use tomcat 5, MySQL, Java/jsp, JDBC, JNDI.

My problem is that if an application sets a lock on a data item in share mode any other applications running on the same pc can still update this item. I know the lock is set as you cannot update the record in the database because of the lock.

I would really appreciate if someone could help me

Mette
Reply With Quote
  #2 (permalink)  
Old 03-16-04, 04:39
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
Re: Lock in share mode problem using Innodb

Quote:
Originally posted by mette
I have written an web application that use tomcat 5, MySQL, Java/jsp, JDBC, JNDI.

My problem is that if an application sets a lock on a data item in share mode any other applications running on the same pc can still update this item. I know the lock is set as you cannot update the record in the database because of the lock.

I would really appreciate if someone could help me

Mette
Apparently you use the same thread. Innodb transaction and lock are based on Thread, connection and user.
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
  #3 (permalink)  
Old 03-16-04, 05:06
mette mette is offline
Registered User
 
Join Date: Mar 2004
Location: London, uk & Denmark
Posts: 5
Re: Lock in share mode problem using Innodb

I know what the problem is now and can solve it by redesigning my JSP applications to be multi threaded.

You have saved my day…Thank you

Mette
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On