Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8427819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:53:01+00:00 2026-06-10T04:53:01+00:00

I have a big xml file that I want to get transferred from c:

  • 0

I have a big xml file that I want to get transferred from c: drive to d: drive at particular time period.

I want to design a Java class to perform a batch job. This would means that the java class will act like a batch job and it will pick the xml file from c: drive and will send it to d: drive at particular time.I want the other time setting and file location specifications to be done in xml file and the rest java class would contain the buisness logic.

Please advise how to achieve this , and also please let me know any of frameworks like Spring or Spring Integration, Spring Batch that might provide any help..!

I am more interested in spring batch!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:53:03+00:00Added an answer on June 10, 2026 at 4:53 am

    I would recommend using your OS scheduler to achieve this. Put your business logic in the Java code any way you want but on windows schedule it with the windows scheduler, on unix use cron.

    If you absolutely need Java to be the scheduler as well, look into Quartz.

    —- Using Windows Scheduler —-

    First, create a batch file to kick off your java code:

    myjavarunner.bat:

    java -classpath <myclasspath> com.silly.project.ClassWithMainMethod <arguments>
    

    This is not strictly necessary, but when working with java, it is often much easier. Then, create a scheduled task. Click the start button -> Control Panel -> Administrative Tools -> Task Scheduler. Click the Action menu -> Create Task. Fill out all the forms and let er rip.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a big xml file that could be downloaded from the internet. To
Here's what I want to do. I have a big xml file (there are
I have a big (1.9 GB) XML file which has data I want to
I have a big XML file (~20 MB) that contains among others such lines:
I have a 30MB big XML files and want to find a couple of
I have a xml file containing 1 small graphic and 1 big graphic. In
I am parsing through a XML file that's about 12mb big. I need to
I have a big xml file. <Users> <User id=2 name=ABC> <Data>text</Data> </User> <User id=3
I have a big xml file which i'm parsing using jscript. I have used
I'm building an Android app that parses a pretty big XML file (around 500

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.