aspose file tools*
The moose likes Servlets and the fly likes Request Scope Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Request Scope " Watch "Request Scope " New topic
Author

Request Scope

rajiv shaw
Greenhorn

Joined: Jun 25, 2008
Posts: 3
is it possible to maintain request scope between different JVM (by using request dispatcher)?
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

I don't think so unless you explicitly pass/send it on as the RequestDispatcher works for a single JVM.


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
Since the request object is managed by the servlet container, it makes no sense to try to pass the object to another container. It is easy enough to extract all of the data content to a serializable collection object and pass that around.

You should NEVER try to hang on to a request object past the end of one request-response cycle.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Request Scope