Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multi-user "adds" into db won't work

Status
Not open for further replies.

sweetp

Technical User
Jan 9, 2002
35
US
I have an Access 2000 database on an NT server running iPlanet Server and using JSP. My web app (designed in Dreamweaver) lets users add a conference room reservation, delete, and view existing reservations.

When 2 users attempt to click Submit at the same time (to add a room reservation), the database dies.

I have record-locking in Access checked and also Default Record Locking set to: Edit Records.

Is there something with JSP and/or the ODBC driver that I need to do to have the database process multiple requests without crashing?

 
"When 2 users attempt to click Submit at the same time (to add a room reservation), the database dies"
What are the symptoms? Do you get a SQLException?or
nothing happens? Error code 500 in your browser?

Also do you commit your database record changes?

Salih Sipahi
Software Engineer.
City of Istanbul Turkey
s.sipahi@sahinlerholding.com.tr
turkey_clr.gif
 
How are you handling your Connection objects ? Are you trying to commit multiple Statements on a single Connection ?
 
Yes, I'm getting an SQLException and then it says General Error.
 
And the answer to the other questions ...

and also a stack trace ...
 
I'm not sure I understand what you are asking, by "committing multiple statements on a single connection".

The search page has an applet and the page sends a date and a time to the results page, which has 2 recordsets.

The results page shows the user that they requested a certain date and time and the SQL statement for recordset rsAvailableRooms searches the database to find all rooms that are not already taken at that time and filters them out and a drop-down box shows the available rooms to choose from (recordset 1). Then there's another drop-down box for them to select their name (recordset 2).

Also, I don't know how to do a stack trace.

Thanks for your help!

The search page (that passes the requested day and time) is an html page and doesn't open any connections. The results page opens 1 connection.

However, if the submit button on the search page is pressed simultaneously by 2 different people, that will cause the error.

Does this make any sense to you?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top