Help coderanch get a
new server
by contributing to the fundraiser
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Recieving xml

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic