I dug this little gem out of the archives. Enjoy!
In the beginning I used elm to read my mail. This was somewhat radical, especially as I worked with the team that created POPMail for the mac and Minuet for the PC, and everyone else moved to pine. Then came Mutt -- happy days -- I was able to slice and dice email with amazing speed.
Using an SSL Accelerator like a Netscaler is really useful, you can offload a lot of work to a device that supports this in hardware and can use SSL session affinity to send requests to the same backend. In the simplest setup the SSL Accelerator accepts the request and proxies it to your internal set of hosts running on port 80.
import java.io.IOException;
import javax.servlet.ServletException;
import org.apache.catalina.connector.Request;
import org.apache.catalina.connector.Response;
import org.apache.catalina.valves.ValveBase;public class NetscalerSSLValve extends ValveBase {
@Override
public void invoke(Request req, Response resp) throws IOException, ServletException {
if ("On".equals(req.getHeader("Front-End-Https"))) {
req.setSecure(true);
req.getCoyoteRequest().scheme().setString("https");
req.getCoyoteRequest().setServerPort(443);
}
if ( getNext() != null ) {
getNext().invoke(req, resp);
}
}
}
Speaking at "Meet the Containers", "Shindig 101" and "OpenSocial Fireside Chat".
All at Moscone West, check it out!
"Two Characters Sets? Seems like plenty!"
So I've been pushing Java to it's limits lately and finding some real nasty concurrency issues inside the JRE code itself. Here's one particulary ugly one -- we had 700 threads stuck here:
Why am I so tired?
Been working hard to implement features decribed here..:
hi5 Launches New Music Applications By iLike and Qloud
No more music royalties for hi5. Cost center is now a profit center...
Why am I so tired?
Been working hard to implement features decribed here..:
hi5 Launches New Music Applications By iLike and Qloud
No more music royalties for hi5. Cost center is now a profit center...