jetty continuations help! [message #665809] |
Sat, 16 April 2011 09:13 |
ravi Messages: 4 Registered: April 2011 |
Junior Member |
|
|
hi!
i have recently started using jetty (version 7.3.0.v20110203).
i'm unable to compile the following servlet which uses jetty continuations.
Please HELP.
thanks,
ravi.
import java.lang.*;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import org.eclipse.jetty.continuation.Continuation;
import org.eclipse.jetty.continuation.ContinuationSupport;
public class ContinuationServlet extends HttpServlet {
public void service(HttpServletRequest req, HttpServletResponse res)
throws java.io.IOException {
String reqId = req.getParameter("id");
Continuation cc = ContinuationSupport.getContinuation(req);
res.setContentType("text/plain");
res.getWriter().println("Request: "+reqId+"\tstart:\t"+new Date());
res.getWriter().flush();
cc.suspend(2000);
res.getWriter().println("Request: "+reqId+"\tend:\t"+new Date());
}
}
i'm able to compile HelloWorld.java but not this servlet.
i'm using windows and C:\jetty7 is my jetty installation directory.
for compiling:
javac -cp C:\jetty7\lib\servlet-api-2.5.jar;C:\jetty7\lib\jetty-all-$J ETTY_VERSION.jar ContinuationServlet.java
i'm getting the following error:
package org.eclipse.jetty.continuation does not exist
[Updated on: Sat, 16 April 2011 09:16] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08022 seconds