• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

smtp,ftp protocol in Tomcat

 
Ingoba Ningthoujam
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we use smtp,ftp protocol in Tomcat?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you talking about a servlet making SMTP/FTP connections, or are you talking about accessing Tomcat via SMTP/FTP instead of HTTP?

If the former, then the answer is yes. You can use the JavaMail API for making SMTP connections, and the Jakarta Commons Net library for FTP connections.

If the latter, then this is only theoretically possible. This FAQ page has more detail about why that is so.
[ December 07, 2006: Message edited by: Ulf Dittmer ]
 
Neerav Narielwala
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JUpload

Upload multiple files to the webserver. Using standard HTTP protocol and supporting PHP,ASP,JSP,IIS,Apache,Tomcat,ColdFusion. Features secure HTTP, proxy support, image preview, file transfer resuming, progress bar and more.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Neerav Narielwala,

This sounds more like an ad for a product than a answer to the original poster's question.

To answer the original question:
Tomcat is not an FTP or SMTP server but (as Ulf has mentioned) there is nothing stopping an application developer from using the various libraries available to add an FTP Client or SMTP client to their own webapps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic