I experienced the same deadlock problems you described, which tend to show up more under load. I discovered that row level locking in Sybase 11 & 12 is not always enabled/displayed properly by 3rd party database tools. The default seems to be to lock the entire table even when MAX_ROWS_PER_PAGE is set to one. You also have to make sure that "LOCK DATAROWS" is specified. The solution I found was to issue the following SQL commands:
| ALTER TABLE JMS_MESSAGES LOCK DATAROWS | ALTER TABLE JMS_TRANSACTIONS LOCK DATAROWS | | --which should produce table DDL like the following: | | CREATE TABLE dbo.JMS_MESSAGES | ( | MESSAGEID int NOT NULL, | DESTINATION varchar(255) NOT NULL, | TXID int NULL, | TXOP char(1) NULL, | MESSAGEBLOB image NULL | ) | LOCK DATAROWS | WITH EXP_ROW_SIZE=280, | MAX_ROWS_PER_PAGE=1 | | | CREATE TABLE dbo.JMS_TRANSACTIONS | ( | TXID int NULL | ) | LOCK DATAROWS | WITH EXP_ROW_SIZE=4, | MAX_ROWS_PER_PAGE=1 | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864431#3864431 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864431 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
