wood burning stoves
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Request Scope " Watch "Request Scope " New topic

Request Scope

rajiv shaw

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: 3381

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

Joined: Mar 22, 2000
Posts: 13025
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.

I agree. Here's the link: http://aspose.com/file-tools
subject: Request Scope
It's not a secret anymore!