Architect Issue.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an Exe and on My Pc I am allowing my exe to execute from desktop as
well as calling from web application.

This exe is a dotnet application and hosts a DLL. again this DLL is a dotnet
application. Till now every thing is system works fine.

I can see multiple instances are opening and work is getting completed as
per my expections.


Problem is that In my DLL I have one Static class; class has property which
hold complex cached data. since all the application has app domain different
how do I preserve to have only one instance across all the application.
(Memory saving)

Regards,
Kishor
 
Create it as a service. You have a choice here.

1. Web service - easiest to implement, decent performance (under 2.0) -
Note: I stick Remoting under this realm, even though it is a different beast
to code.
2. Windows service - better performance, harder to implement

I would opt for the web service first, even if you choose a Remoting
transport, and see if it fulfills your needs.

Another option is the GAC, which puts the code in one place, but I still
think this will load independently for each app domain, which will make it
an identical situation.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
 
Hi,
Thanxs for your reply,
Webservice can be a solution.
But will be slower. There must be some other way to achieve this.


Regards,
Kishor
 
Back
Top