MultiThreading Public Variables in Tomcat Java Servlets

Përfunduar Postuar Nov 4, 2011 Paguhet në dorëzim
Përfunduar Paguhet në dorëzim

I am using some servlets running under Tomcat 6.0. Prototype code is attached. The code needs to be restructured.

What I want to do is the following:

1. Allow servlet pktgetparms to be invoked by multiple users.

2. The public variables in pktcontrolblock, which are modified by multiple programs, for example pkttcontrolblockinit, should be unique for each user.

Right now if the second user comes in, they are modified before the first user is done.

I am not quite sure of how the structure should be set up. Possibly creating a pktcontrolblock class for each invokation of pktgetparms? Then, how should the variables in pktcontrolblock be accessed by programs such as pktcontrolblockinit?

This project is just to help me set up the structure. Prototype code is attached. In the real code, more things are done such as reading a file and many more variables are used. A solution such as using the session object will probably not work. I believe that whole part of the code has to be multi-threaded.

Java MySQL PHP Arkitekturë softuerësh Testim Softuerësh Hosting Uebi Menaxhim uebsajti Testim i uebfaqeve Tryeza Windows

ID Projekti: #3675400

Rreth projektit

4 propozimet Projekti në distancë Aktiv Nov 5, 2011

Është zgjedhur fitues:

dineshchand1984

See private message.

$15 USD për 2 ditë
(6 Përshtypje)
2.7

4 profesionistë freelancer dërguan një ofertë mesatare prej $16 për këtë punë

namhaminh

See private message.

$21.25 USD për 2 ditë
(117 Përshtypje)
5.8
abanipatra

See private message.

$21.25 USD për 2 ditë
(88 Përshtypje)
5.5
dimplex

See private message.

$5 USD për 2 ditë
(43 Përshtypje)
4.9