Connect to Running Application

Connect to Running Application

am 14.01.2008 23:46:32 von bangeye

Tribe,

I have need to use ASP.NET to connect to an already running
application (non web) that will be running on the same server as IIS.

Start MyServerApp,
MyServerApp is now running - doing work for me.

ASP.NET page request comes in,
Create on the fly object of some sort that can talk to MyServerApp,
Retrieve status from MyServerApp,
Return status to user in web page.

Any ideas?

I do not want to pass data through semaphores, or use the MSMQ to
shuffle messages.

I figure I'll probably have to use a custom socket connection to
exchange data.

Anybody have a reference to something like this?

Thanks,
Dave Cline
~bangeye~

Re: Connect to Running Application

am 15.01.2008 00:10:33 von bangeye

So it looks like I should use Remoting to connect to the MyServerApp.

That or WCF.

Hmm, choices choices. Hey Microsoft - will ya quit already? I can't
keep up!

On Jan 14, 2:46 pm, bangeye wrote:
> Tribe,
>
> I have need to use ASP.NET to connect to an already running
> application (non web) that will be running on the same server as IIS.
>
> Start MyServerApp,
> MyServerApp is now running - doing work for me.
>
> ASP.NET page request comes in,
> Create on the fly object of some sort that can talk to MyServerApp,
> Retrieve status from MyServerApp,
> Return status to user in web page.
>
> Any ideas?
>
> I do not want to pass data through semaphores, or use the MSMQ to
> shuffle messages.
>
> I figure I'll probably have to use a custom socket connection to
> exchange data.
>
> Anybody have a reference to something like this?
>
> Thanks,
> Dave Cline
> ~bangeye~

Re: Connect to Running Application

am 15.01.2008 10:49:35 von xyz_john

A simple socket server and listener would likely suffice. You would need to
add the socket server code to your existing myServerApp and addd the client
conenction code to an asp.net page.

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog


"bangeye" wrote in message
news:1635b50b-b09e-4b9b-8387-1a22b61cc70e@f3g2000hsg.googleg roups.com...
> Tribe,
>
> I have need to use ASP.NET to connect to an already running
> application (non web) that will be running on the same server as IIS.
>
> Start MyServerApp,
> MyServerApp is now running - doing work for me.
>
> ASP.NET page request comes in,
> Create on the fly object of some sort that can talk to MyServerApp,
> Retrieve status from MyServerApp,
> Return status to user in web page.
>
> Any ideas?
>
> I do not want to pass data through semaphores, or use the MSMQ to
> shuffle messages.
>
> I figure I'll probably have to use a custom socket connection to
> exchange data.
>
> Anybody have a reference to something like this?
>
> Thanks,
> Dave Cline
> ~bangeye~
>

Re: Connect to Running Application

am 15.01.2008 18:56:39 von bangeye

Thanks John,

I'll do some searching (codeproject maybe) to see if I can find some
socket Client/Server code to use.

I did see that Remoting and WCF were options. And so I may do that -
but it looks like MS has made Remoting from ASP.NET into a process
more complicated than necessary and we know sockets just work,
regardless.

DC

On Jan 15, 1:49 am, "John Timney \(MVP\)"
wrote:
> A simple socket server and listener would likely suffice. You would need to
> add the socket server code to your existing myServerApp and addd the client
> conenction code to an asp.net page.
>
> Regards
>
> John Timney (MVP)http://www.johntimney.comhttp://www.johntimney.com/blog
>
> "bangeye" wrote in message
>
> news:1635b50b-b09e-4b9b-8387-1a22b61cc70e@f3g2000hsg.googleg roups.com...
>
> > Tribe,
>
> > I have need to use ASP.NET to connect to an already running
> > application (non web) that will be running on the same server as IIS.
>
> > Start MyServerApp,
> > MyServerApp is now running - doing work for me.
>
> > ASP.NET page request comes in,
> > Create on the fly object of some sort that can talk to MyServerApp,
> > Retrieve status from MyServerApp,
> > Return status to user in web page.
>
> > Any ideas?
>
> > I do not want to pass data through semaphores, or use the MSMQ to
> > shuffle messages.
>
> > I figure I'll probably have to use a custom socket connection to
> > exchange data.
>
> > Anybody have a reference to something like this?
>
> > Thanks,
> > Dave Cline
> > ~bangeye~