Matt Wielbut

Greenhorn
+ Follow
since Jun 04, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Matt Wielbut

I've got a class that only contains static methods in the form

that all the servelts use to execute SQL statements.
I use a connection pool that is thread safe to get DB connections but do these methods need to be synchronized also. The rule I've always followed is, if multilple threads are mutating a variable then make the code synchronized. Is this correct?
20 years ago
Performance wise, should you create variables to store header values at the start of a jsp or servlet and refer to those variables when grabbing the info later on, or should you just make calls directly to the request object.
Ex:


just wondering..
21 years ago
Here's the scenario, if anyone can please help:
-user visits login page on a server1 port 80
-user is authenticated and username, pass, and authentication method are stored in request object.
-user now has a choice between a number of webapps he/she has access to, one of which is running under a different tomcat server on port 8080 on the same machine
How can I check, on the other app, sitting on the other tomcat server, whether the user is authenticated? Is there any way I can pass the request object to the other server? How bout a session object?
I don't want to pass any informtion in the url i.e. GET