• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Servlet or Web Service? What should it be??  RSS feed

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!!
I need to know if I can write a class that will filter the mails received by a SMTP server and get the necessary ones to be procesed by another class. Also can I make a servlet of this class or do I need to deploy it as a web service. The servlet or web service to be deployed is to be done in Apache Tomcat server. The class needs to constantly ping the SMTP server for new mails or the SMTP server should send a message to the class notifying arrival of a new mails. Is this possible?
 
Ranch Hand
Posts: 8934
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlet , webservices why do need such complicated stuff. You could simply use javamail API.
[ December 02, 2003: Message edited by: Pradeep Bhat ]
 
Ketan KC Chachad
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I completely agree to usage of JavaMail API but that will be the class that processes the mails received by the SMTP server. But this class also needs to constantly monitor the incoming of mails that are to be processed. In this case what is better making use of a web service or a servlet?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!