Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Recieving xml  RSS feed

 
rob harvey
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi - am am developing a struts project on tomcat 5.5 and need to receive xml files from a provider. I have a choice of either receiving them via ftp or http post.
Ive thought about both options and was thinking if ftp is used i could have a thread polling the server to see if any xml docs have arrived and then load the data into the DB. If I receive an http post I could have a dedicated servlet receiving the data and saving to the DB.
Does anyone have any adivce on this - i.e. the pros and cons of each strategy? Would this be a case for me to set up a web service for the http post to recieve the data?
Its a very tight deadline so simple is best.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A dedicated servlet would be the simplest in my opinion. Another advantage is that you could have a doGet method that could show you the current status - most recent change, errors, etc etc. for management purposes.
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!