Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 19th, 2007, 08:51 AM
Registered User
 
Join Date: Jun 2007
Location: Mumbai, Maharashtra, India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to make servlet single threaded?

Hi All,
  My application is for multiple users.
 There are 5 different coppies of application with 5 different databases. I am trying to create one unique ID accross all application and databases.
  I am reading the values from from all 5 databases and creating ID.
So its is working for single application.
But when 2 or more user try to add entry with unique ID at the same time,then prob occures.
So how to make servlet single threaded?
 Actually my code is scattered among 2 servlet and 2 more java files.
So I can't even use lock and unlock tables. becoz getting and closing the connection is at one place and the need is at some other place.

Can somebody tell what to do?

Make Problem solving Fun
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 Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
By Default Servlet is Single or Multi-Thread Model bikash Servlets 6 September 3rd, 2009 02:35 PM
How to make servlet single threaded? harshala Apache Tomcat 0 June 20th, 2007 12:28 AM
How to make a single EXE of a VB project amarjits Pro VB 6 1 January 17th, 2007 08:48 AM
.net 2.0 - databinding to GUI in multi-threaded ap ivj C# 0 September 7th, 2006 01:49 AM
how can i create Single Thread in servlet spmanivel Servlets 1 July 25th, 2006 06:14 PM



All times are GMT -4. The time now is 06:54 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.