Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Non Http Servlet

 
aniruddha gaikwad
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Is anybody try programing non http servlet ?
Is there any tutorial, examples available on it?
 
Norm Radder
Ranch Hand
Posts: 732
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What protocols would it serve? FTP, SMTP, ???
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I's curious, why would you want that?

To me, the point of doing servlets is that the base classes handle a bunch of HTTP specific boring stuff.

If you used something else, the boring stuff would be different, and the servlet base classes couldn't help.

If you just want to talk a protocol, why not just open the socket and go?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is actually a FAQ: http://faq.javaranch.com/java/ServletsFaq#10
 
aniruddha gaikwad
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I m just curious. The Specification says that we can use Servlet for non http protocol also, But I m never come across any non http servlet, to just get to know I ask this question.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did the FAQ entry answer your question?
 
aniruddha gaikwad
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I forgot to mentioned that, the faq answer my questions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic