This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Streaming Servlet Response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Streaming Servlet Response" Watch "Streaming Servlet Response" New topic
Author

Streaming Servlet Response

Amit Biswas
Ranch Hand

Joined: Jun 01, 2006
Posts: 52
I have a requirement where there is a Servlet service running that takes only request parameters i.e, every information is given as a query string. something like
http://abcd.cg.com/2.0/query?param1=val1¶m2=val2
It gives back streaming CSV response.
All I want to do is send out the request and asynchronously process the response as and when it comes.
Please advice me how to do this using java.net.

Thanks in advance !
Amit Biswas
Ranch Hand

Joined: Jun 01, 2006
Posts: 52
For more clarity, I have to code the client program for the Servlet whose behaviour I have described above. I have to use the Servlet and it has already been developed.
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Originally posted by Amit Biswas:

All I want to do is send out the request and asynchronously process the response as and when it comes.


HTTP is a request response protocol.I do not think using this alone you can achieve this.


Rahul Bhattacharjee
LinkedIn - Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Streaming Servlet Response
 
Similar Threads
call html with values
Forwarding to external site
Getting problem while redirecting the URL
Problem with response.sendRedirect
Firewall Tunelling using Servlet Technology