-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Aitor,
On 12/15/11 7:12 AM, Aitor Garcia | Tempel.es wrote: > 5) Tomcat, creates ONE (or maybe SOME) Class object and call to the > _jspService on every script request > > What happens if you handle Pool Coonections with a > 'java.sql.Connection conn' variable declared into the definitions > block "<%! %>"? > > Happens than if you are donig multitheading and executing the same > sctipt in parallel you will mix up connections because evey thead > is executing the same method in parallel and putting a different > connection into the java.sql.Connection conn class variable. > > I don't know if this is a tomcat bug. Obviously it's not. This is one of the many reasons why application logic has no business being in a JSP. Whoever proposed (and, indeed approved) the introduction of scriptlets (<% ... %>) should have been flogged. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7qFLAACgkQ9CaO5/Lv0PBjBgCfeCtAcWmeoSWJsva+VGEevvnU xvoAoKCMa1i5YwxqbrHkiAeo9SKGe+Rr =0kQv -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org