dcsimg
www.webdeveloper.com
Results 1 to 6 of 6

Thread: Batch processing in Java: billing online purchases

  1. #1
    Join Date
    Oct 2012
    Posts
    37

    Batch processing in Java: billing online purchases

    Hi everyone! I am writing my first serious batch processing application. The task is to create a bill from online purchases. The customer's purchase data are stored in a database. I have to create an XML file from this data every day and save it some where.

    So these are the steps that I think I should do:
    - Get the data for every unique customer from the database for the past day. If customer has more than one purchase at the batching time, sum all the purchases.
    - An XML file is created per each customer (The difficult part?)
    - Mark into the database those purchases that are processed/billed (so that next day they are not processed again)

    My questions are:

    Is that sequence of doing things right or are there other things to be considered?
    Are there any Java frameworks that I could use for this kind of batching purposes?
    Any hints or suggestions on building the structure of the XML elements?

    Thanks in advance
    Atrisa
    Last edited by Atrisa Milani; 01-22-2014 at 09:57 AM.

  2. #2
    Join Date
    Oct 2012
    Posts
    37
    Why is everyone so silent? Is this a difficult question; is it unclear or is it an irrelevant question? Say something. we can't advance this way

  3. #3
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    6,137
    Its not difficult question...I am guessing you probably already have figured out..anyways, I think question here is that ur steps may be right, but is that all the business rules that you need to implement?
    1. get data from db. (are there any conditions here)
    2. create file (any rules here? which fields to be included, any formatting etc)
    3. update db?
    if you still haven't found a solution, post back and I will try to help you..
    Cheers

    Khalid

    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

  4. #4
    Join Date
    Oct 2012
    Posts
    37
    Thanks Khalid. Actually I have figured out what to do. I will come back here if I face difficulties on the way

  5. #5
    Join Date
    Dec 2013
    Posts
    30
    If your business requires recurring high-volume transaction processing, you need to reconsider your batch-processing strategy. J2EE java framework is beneficial to achieve reliable, scalable, and efficient processing over large data sets.

  6. #6
    Yes, it is difficult for me because I don't know anything about this topic.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles