Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Upload files using scheduler

  1. #1
    Junior Member
    Join Date
    Nov 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Upload files using scheduler

    Hi,

    I have a table. Record is getting inserted through application not a daily basis.
    I need a scheduler which will fetch records from this table and will upload in another table.
    Here my requirement is since in this table record is not getting inserted frequently, i do not want to fecth this table data in a regular interval through scheduler.

    I want to fetch this table only once by some other mechanism say. How i will do it.
    Amin is to reduce frequent db fetch call.


  2. #2
    Member
    Join Date
    Nov 2013
    Location
    Bangalore, India
    Posts
    69
    My Mood
    Cool
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Default Re: Upload files using scheduler

    You can write a procedure to upload records from table1 to table2 and create a timertask in java to schedule run of this procedure as per your needs.

  3. #3
    Member
    Join Date
    Feb 2011
    Posts
    31
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default Re: Upload files using scheduler

    So if I understand correctly, you are wanting to run this application only once and you want it to be called by another application? If this is how you are wanting to do it, you should package the "scheduled" app as a jar, add it to your other application, and call it when needed.


    All intelligent thoughts have already been thought;
    what is necessary is only to try to think them again.



Similar Threads

  1. Replies: 4
    Last Post: September 22nd, 2013, 01:43 PM
  2. How to improve FTP upload speed for multiple files.
    By Darknight in forum Java Networking
    Replies: 1
    Last Post: July 15th, 2013, 12:00 AM
  3. MultiThreaded Scheduler
    By sci4me in forum Java Theory & Questions
    Replies: 3
    Last Post: April 21st, 2013, 06:26 PM
  4. HOW TO UPLOAD JAVA FILES IN NETBEANS
    By ordonezc78 in forum Java IDEs
    Replies: 2
    Last Post: March 19th, 2011, 09:05 AM