Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WCF
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
Comments
Jason Gleim at 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 at 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 at 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
0 OriginalGriff 300
1 Maciej Los 180
2 Richard MacCutchan 115
3 arvind mepani 104
4 Tino Fourie 92


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