This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes A new way to handle Non HTTP requests through Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "A new way to handle Non HTTP requests through Servlets" Watch "A new way to handle Non HTTP requests through Servlets" New topic

A new way to handle Non HTTP requests through Servlets

Arun Somasundaram
Ranch Hand

Joined: Jul 25, 2006
Posts: 63
Hi friends I read an article which suggested a way to handle other protocol requests through Servlets.The idea suggested in the article looks good.You people read the article and share the comments whether the way suggested is possible or not.If possible how it can be implemented.

Handling Non HttpRequests in Servlets

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41164
The listing of advantages and disadvantages sounds a bit confused to me, but it seems that the author put the emphasis on how to administer such a solution, and how to use it in clusters. That's understandable given that he works for a company that sells a server for which such topics need to be addressed, but it means that your requirements -and thus the best solution- might be different.

More important than the question what the best architecture for such a server might be, though, is the question of its usefulness, IMO. That is to say, what advantage has a servlet-based approach to independent HTTP and FTP servers? FTP (which has relatively long-running sessions) is a different beast than HTTP (where requests come in short bursts, and the connection is not maintained in between, HTTP keepalive notwithstanding). What would an FTP servlet do - execute particular code if a certain file or directory is uploaded or downloaded? Create files on the fly? I think answering these questions is at least as important as clustering and administration when it comes to determining the architecture.

Ping & DNS - my free Android networking tools app
It is sorta covered in the JavaRanch Style Guide.
subject: A new way to handle Non HTTP requests through Servlets
Similar Threads
How to Handle REFRESH event in Browsers?
tomcat and apache webserver
Name for constants
some questions
servlets: can we override service method ?if yes how and why?if no then why?