Tracking HTTP Session by using HttpSessionListener

In web application, sometimes we need to track existing sessions on server, for example we need to get actual HTTP session from session ID. Following I will show you simple HTTP session listener to keep existing sessions during creation time, then get stored session based on session ID. Below sample code will store valid sessions into memory for debugging and …


Simple Web Cache Filter in Java

As you know, Internet browser has feature to cache all static files like images, Javascript, and CSS. This cache is very useful to reduce network latency when the browser requesting data from Web server. Before the browser do request to Web server, it will check first on its local cache, if the file is not there, expired, or not same …


CRest, HTTP Invoker with simple annotation

CRest (Client Representational State Transfer or Client REST) is a lightweight JAX-RS compatible framework aiming to simplify the integration of external REST services into java applications.

By using CRest, there is no need for a developer to spent a lot of efforts on the development. You can use annotation to easily create HTTP invoker against the server by specifying URL, …