-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am going to make my servlet be static, with the hope that it will only
have one instance running, regardless of how many clients connect to it.

My concern is what happens when two clients try to connect at one time.
 Will the second client block, until the servlet is available?

I am planning on having it be multi-threaded to handle several clients,
but I was just curious if the client will block.

I only want one instance because I want to control the number of
database connections, and right now the magic number is one db
connection. I will just queue up the client updates and there will be a
mechanism for them to be informed when the db update is completed.

Thank you.

- --
Corruptisima republica plurimae leges. [The more corrupt a republic, the
more laws.]
Tacitus from Annals III, 116AD
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFDljy7J/zyYkX46joRAhq7AJ9NF9R+xV8NMsveActW3OTAZB0W2gCghqS+
EwHmAiwiaBQ8wWh6HlDB9SI=
=9o02
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to