*
The moose likes Servlets and the fly likes Question about 2.3 Filters and Session Management Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Question about 2.3 Filters and Session Management" Watch "Question about 2.3 Filters and Session Management" New topic
Author

Question about 2.3 Filters and Session Management

Paul Frey
Greenhorn

Joined: Apr 25, 2002
Posts: 19
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.


Paul G. Frey, Jr.
Rob Misek
Ranch Hand

Joined: Sep 24, 2002
Posts: 41
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!
 
Don't get me started about those stupid light bulbs.
 
subject: Question about 2.3 Filters and Session Management
 
Similar Threads
Session time-out notification
Session management on server to server requests.
avoiding initialization of hibernate objects
Is this even possible?
Hibernate/Spring/Jboss Annotations + Entity Mapping problems