I need to tie a Session object to a device ID that will be included in GET or POST operation originating from a PDA device. Is it possible to write a filter that wraps the HTTPRequest so that I could control the Session management (ie. create the session object) by using the device ID instead of a cookie or URL rewriting (which will not work with this device)? The advantage I see to using this method would be that the web application would be insulated from having to behave differently (outside of the filter of course) for different devices. If you have any feedback, I'd appreciate it. I'd like to get feedback before I venture into too much coding Thanks.
Hi Paul, This is definitely possible I wrote our Session Replication Module for Servlet 2.3 which actually forces the app server to use our session object and you can provide the sessionID (as long as it is unique). Check out Coherence, the only coherent, clustered, synchronous cache/objectstore. The Servlet 2.3 HTTP-Session Replication module is included in the download. Then if you register and request a development license (free) you will receive the source code outlining how to use Filters to accomplish this. Later.
<a href="http://www.tangosol.com" target="_blank" rel="nofollow">www.tangosol.com</a><br /><a href="http://www.tangosol.com/coherence.jsp" target="_blank" rel="nofollow">Coherence:</a> Easily share live data across a cluster!
subject: Question about 2.3 Filters and Session Management