• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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
 
I have always wanted to have a neighbor just like you - Fred Rogers. Tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic