Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

HttpServletRequest and .suspend() ?

Posted on 2008-09-29
3
Medium Priority
?
522 Views
Last Modified: 2013-11-24
Hi,

I'm looking to use Jetty and GWT. In the Jetty docs, they have an example of using HttpServletRequest, but call two methods on it that I cannot find in the docs. The usage example is at the bottom of this page:

    http://docs.codehaus.org/display/JETTY/GWT+RPC+Examples

and it is used like:


    HttpServletRequest request = getThreadLocalRequest();
    HttpServletResponse response = getThreadLocalResponse();
    System.err.println("HANDLING: " + request + " | " + request.hashCode() + " | " + response.hashCode());

    if(request.isInitial())
    {
        request.setAttribute("ts", Long.valueOf(System.currentTimeMillis()));
        request.suspend(5000);
        return null;
    }

I can''t find a suspend() or isInitial() method of HttpServletRequest. What am I missing?

I contacted Jetty and am waiting for some info on it, but since HttpServletRequest is a javax class I was hoping someone might have some insight onto what I did wrong here,

Thanks
0
Comment
Question by:DJ_AM_Juicebox
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
cmalakar earned 2000 total points
ID: 22598158
suspend() and resume() are the new method that will be part of servlet-3.0 version.

I think.. it's still under development..

Dont know.. why jetty has already giving examples with that..
0
 

Author Comment

by:DJ_AM_Juicebox
ID: 22604604
Ah ok that makes sense.

Who is developing the servlet 3.0 standard, Sun?

When will it be released - does it come part of a new JDK?

Thanks
0
 
LVL 23

Expert Comment

by:cmalakar
ID: 22607140
It will be released as a part of j2ee 6 not jdk.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question