logo       

Re: Process requests without socketlistener: msg#00010

java.jetty.general

Subject: Re: Process requests without socketlistener


David,

The answer is yes - see some of the jetty test harnesses that do exactly
that.

But it is not a very efficient thing to do - as servlet requests and responses
are complex beasties with lots of non-bean semantics.

cheers



David Smith wrote:
I have a chat server that I'm using a jetty webapplication for client to server
fileuploads and downloads. But I've recently decided to run the chatserver
protocol and HTTP over port 80. I need the chat server to control the thread
and determine the type of request (chat or HTTP). If chat request, process as
usual, if HTTP request I want to pass to jetty.

Is there any way to pass a request to a jetty.Server instance using something
like jetty.server.service(req, rep) ?

At the point I would pass to jetty I would have already read the request
headers.

I don't want to create a socket listener and I don't want to use AJP.

Thanks.



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise