aspose file tools*
The moose likes Servlets and the fly likes is it safe to put objects in HttpRequest(for a cluster environment) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "is it safe to put objects in HttpRequest(for a cluster environment)" Watch "is it safe to put objects in HttpRequest(for a cluster environment)" New topic
Author

is it safe to put objects in HttpRequest(for a cluster environment)

Raj Ohadi
Ranch Hand

Joined: Jun 30, 2006
Posts: 316
In clustered environment, is it safe to put object in HttpRequest ? Should we always put them in HttpSession if it is a clustered environment ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60975
    
  65

What basis do you have for wondering why request scope might not be "safe"?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Since a request only lasts the duration of a 'request', it shouldn't matter if you're in a clustered environment.
The machine that recieves the request will be the one making the response.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is it safe to put objects in HttpRequest(for a cluster environment)