Click here to Skip to main content
13,054,615 members (58,126 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Good Morning ALL
I will explain in steps excatly what I want to my application to do
Step1:-Query data base every minute and my data base table will contain time.If that minute matches the time. Return the JobID
Step2:- Once you get the jobID pass that JobID to WCF service and that will execute certain steps to insert data into data base.

Question 1:-Shall I simple create windows service and using a timer to periodically check the updated data.And pass the job ID to WCF service.

Question 1:-Shall I simple create WCF Client and service where Client will be quering the data base and return the result to WCF Service. Shall I use duplex binding.

Once the jobID is passed to any service to process it will take more then 30 mins. And there will be more then one job running at the same time.
Posted 7-Nov-12 2:27am
Jason Gleim 7-Nov-12 12:19pm
Why do you want to use a service? It seems you are creating a job execution engine... are the engine and the DB separated by something that requires a web service?

It seems it might be a lot easier to write a regular app that just connects directly to the database, runs the query, then passes it off for processing before it exits. Then set it up as a scheduled task on the database server itself to run every minute or whatever.
nelsonmarian 8-Nov-12 0:47am
Good Morning Jason
Thanks for your reply. Once i get the jobID I need to use that jobID to do some processing. It takes around an hour to complete that processing.And that processing is invloves lot of thing like Connecting to another webservice and downlaoding the files from there. Process the XML file and finally inserting into data base. Then pick up the next jobID.Some time it might take 2 hours also for that process.
Michael Bendtsen 12-Dec-12 5:41am
I agree with Jason. And I think it all depends on the architecture you are going after. Any problems why the job monitoring service couldn't execute the task in a different thread? Otherwise you could start a new process for each job that should be executed or call another service that would execute the job.

Also note that WCF cannot be use to do monitoring apps. WCF will only be triggered if a client calls it not by a specific interval.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 7 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100