Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can ASP script on website "start" app on my computer

Status
Not open for further replies.

OrthoDocSoft

Programmer
May 7, 2004
291
US
Folks,

My client application sends data to ASP scripts on my website, which acts on this data, stores it in a DB, and "replies" to my client app. I am quite comfortable with this. My question is:

Can an ASP script on my website "call/activate/create an event in" my client app (which is running, but not "looking" for anything) when it (the script) is ready to send the app some information? I am trying to keep from having the app always looking at the website for new data to act on.

Thanks,

Ortho

[lookaround] "you cain't fix 'stupid'...
 
You can use an MSMQ local machine queue for this. The ASP page can insert a message containing almost anything up to 4MB in size. You can even pass an object in the message body assuming there is a typelib registered for it (a copy of the object gets stored and retrieved, not a reference). ADO Recordsets or Streams, Scripting.Dictionaries, lots of possibilities.

Your application can monitor the queue, respond to a queue insertion event, or be set up via a trigger on the queue so it only gets run when there are messages to process.
 
dilettante, thank you for this tip. I am going to check into this in time and thank you appropriately later (assuming I don't have more questions about how to make what you suggested work).

Ortho

[lookaround] "you cain't fix 'stupid'...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top