Click to See Complete Forum and Search --> : Passing data between 2 processes not run simultaniously
Saeed
July 16th, 2009, 11:42 PM
How would you pass Data (objects) from one process to another that are NOT running simultaniously but in sequentially WITHOUT the use of a database or a file in between?
process 1 starts
..... ----->
process 1 ends |
|
+===================+
| Data object |
+===================+
|
process 2 starts |
.... <------
process 2 ends
boudino
July 17th, 2009, 07:15 AM
I think MSMQ could help with this.
Shuja Ali
July 17th, 2009, 01:24 PM
WITHOUT the use of a database or a file in between?Not possible without using some kind of interface as mentioned in post # 2, use MSMQ, or the way I would do it is, serialize the object and then save the XML in a file or database then have another program access it.
Now as you have said, you want it without File or database, then MSMQ will be your better option, but that also adds litle more complexity in terms of how much of MSMQ does your team know.
Arjay
July 18th, 2009, 10:03 PM
May I suggest that you abstract the storage out of the problem and decide on the interface that both applications call. A simple solution would be to use WCF as the interface. Just define an interface with a couple of setters/getters for the data. Internally the WCF service could then use any storage medium it desires (in memory, file, xml file, message queuing, database, registry, etc.). The applications would need to know the details of the storage (and you could swap it out if need be).
Btw, why the hard rule for not using a file or database?
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.