Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet listening for a file on the file system

 
rastas biggs
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I use a servlet to implement a listener.

Let say some one ftps a file into a directory I want my servlet to handle the file e.g. read the data and do something with it.

Is this possible and if so can some one post some sample code.

Cheers
RB
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65115
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. Servlets are not an appropriate technology choice for this.
 
Bill Fences
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear, what would you suggest?

BF
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic