What you want is a declaration that says "The same type as me". I've seen a couple other people come around to this idea, but I can't recall if anyone has...
jason marshall
jdmarshall@...
Sep 3, 2008 5:44 pm
987
The WingDings Study Group (http://tech.groups.yahoo.com/group/wingding) continues our exploration of "Effective Java, 2nd Edition" by Joshua Bloch. The next...
Hi all, maybe some one can help me with a web app issue. My app serves google maps base layers tiles, for which the request includes a zoom level z, a row...
... What's the "cleanest" code you got so far? Is using Apache as a reverse proxy an option? mod_rewrite can reroute requests for existing files (provided the...
... Hi Eric, I am just using Tomcat, sorry I didn't mention my deployment setup. My current best effort is a servlet filter, with this doFilter: String sp =...
... Don't know of a standard way to forward a request to the default servlet. Did you consider simply returning cached resources yourself? This means you won't...
Stuart, I'm really not following this, or maybe I am and just not liking it. It seems to me that you don't really want a Servlet Filter at all here, but some...
Thanks for the replies. Bob, isn't your Cache object doing what my Filter does? An in my method, my servlet is not coupled to the cache, in yours it is. ...
... Won't clients retrieve images twice, then? You seem to have some 304 logic in the servlet (to handle conditional requests after loosing the cache?) anyway....
Sooner or later, if you write web apps, you should take the time to learn how to implement GET caching and expirations yourself. This becomes more and more...
jason marshall
jdmarshall@...
Sep 10, 2008 9:15 pm
996
Just wanted to remind everyone that we will be skipping the September 23rd WingDings meeting. We will resume on October 14 with Piotr leading our discussion...
So, when someone mentioned "use modproxy" you ignored the advice because you didn't know what modproxy is for, or because you thought it was for something...
jason marshall
jdmarshall@...
Sep 13, 2008 9:10 am
999
... Looks like you know something about me that I didn't even know until now :-)...
... Excuse me? I did not 'ignore the advice'. I pointed out that I am using a simple Tomcat only installation. And when I asked if you had thought that I...
What I'm saying is, "I'm using Tomcat" is no reason you can't use mod_proxy. In fact, if you're a Java developer, it's probably the single most likely reason...
jason marshall
jdmarshall@...
Sep 25, 2008 3:30 am
1002
I finally used the Executor framework in production code recently, and I found it strange the way that Future and Callable interact. Seems to me like this...
jason marshall
jdmarshall@...
Sep 25, 2008 10:07 pm
1003
Jason, ... Callable represents a Runnable that returns a value. This is such a primitive concept that we felt it should stand on its own, and it does get a ...
... Sure. But the concept of a Future is that get() returns the result of an expensive operation. If you call get() on a Java Future that hasn't been...
jason marshall
jdmarshall@...
Sep 26, 2008 5:55 pm
1005
Creating a Future and then waiting for its result, all in the same thread, is perfectly fine. Not publishing the FutureTask so that some other thread can set...
A couple more thoughts. Concerning your notion that Callable and Future[Task] should have been combined more, I want to point out that they are combined more...
The WingDings Study Group (http://tech.groups.yahoo.com/group/wingding) continues our exploration of "Effective Java, 2nd Edition" by Joshua Bloch. The next...
Using a "naked" List, you can corrupt a pure collection of Strings: List items = new ArrayList<String>(); // compiler warning items.add(1); // compiler warning...
Old mail, but still worth responding to (I bet you can't guess that I'm touching this code again, can you?) I agree that having the ExecutorService take a...
jason marshall
jdmarshall@...
Oct 23, 2008 11:40 pm
1011
... Something got lost in translation here. What I meant to say was quite the opposite: Taking a Callable and returning a Future is fine, but it should be the...
jason marshall
jdmarshall@...
Oct 24, 2008 12:09 am
1012
I think you're conceiving of Future as a lazy evaluation thunk, or something similar. That's kind of what Callable is. It does lose something in translation...
I'm thinking the way the people who coined the term thunk. Java developers seem to have some issues with doing this (see also: value object). I am by no means...
jason marshall
jdmarshall@...
Oct 24, 2008 3:23 am
1014
On Thu, Oct 23, 2008 at 5:14 PM, Joe Bowbeer <joe.bowbeer@...> wrote:> ... Looking at FutureTask some more, I'm starting to see how maybe I could ...
jason marshall
jdmarshall@...
Oct 24, 2008 7:48 pm
1015
The WingDings Study Group (http://tech.groups.yahoo.com/group/wingding) continues our exploration of "Effective Java, 2nd Edition" by Joshua Bloch. The next...