Is there any way for a webservice to call methods on an object existing in a different thread already running in an .exe?
I have this "gateway" running as a .NET .exe that polls a database for messages to send through socket communication to a legacy system. We use a webservice to place a message to send to the legacy system in the database. When the "gateway" polls that database and finds a new message it calls the "send" function. This works fine, but I would prefer a solution that didn't involve polling or using any type of queue. I would just create a new instance of the "gateway" object whenever I wanted to send a message, but establishing a connection to the legacy system requires a tedious handshake ritual that takes several seconds. I'm looking for a more efficient way to send message a message through this gateway to the legacy system, and wondered if the webservice that inserts the message into the database could also call the send method of the "gateway" .exe. Any ideas? Thanks! You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.