Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 20th, 2007, 12:28 AM
Registered User
 
Join Date: Jun 2007
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





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 19th, 2007 08:51 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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.