Stateful ASP.NET Application
-
Hi Everyone, This is my first post in here , and thank you for the great efforts. I am stuck with a problem and any opinions on how best it could be solved is highly appreciated. I have a COM library that interacts with an external database.It pulls events from the database and present it to COM clients.This should now work from a web application. I need the client to be notified of events coming from the COM library , so it should always be connected or the server would lose reference and the client is gone.I also need to persist this connectivity throughout calls. What is the best solution to go to solve this problem ? Is this actually possible in Asp.NET ? or would i go to a different technology ? I couldnt find a clue but i feel it has a simple solution right at hand that i am not aware of. I have ideas about doing a service and client for every session connected at all times using .NET Remoting but seems daunting to start implementing this without a good reason. All your ideas and discussions are welcomed. Thank You
-
Hi Everyone, This is my first post in here , and thank you for the great efforts. I am stuck with a problem and any opinions on how best it could be solved is highly appreciated. I have a COM library that interacts with an external database.It pulls events from the database and present it to COM clients.This should now work from a web application. I need the client to be notified of events coming from the COM library , so it should always be connected or the server would lose reference and the client is gone.I also need to persist this connectivity throughout calls. What is the best solution to go to solve this problem ? Is this actually possible in Asp.NET ? or would i go to a different technology ? I couldnt find a clue but i feel it has a simple solution right at hand that i am not aware of. I have ideas about doing a service and client for every session connected at all times using .NET Remoting but seems daunting to start implementing this without a good reason. All your ideas and discussions are welcomed. Thank You
I think you need to rethink your web client implementation. It's not meant to be directly connected to a server all the time. That's why one server is able to serve thousands of clients. The server may certainly keep track of each user (via the Session), but the connection is dropped every time the page is sent back. You may want to adopt a different architecture, whereby all COM events are sent to a queue and whenever the client makes a new request, check what events are in the queue and notify the user accordingly. Regards, Alvaro
-
I think you need to rethink your web client implementation. It's not meant to be directly connected to a server all the time. That's why one server is able to serve thousands of clients. The server may certainly keep track of each user (via the Session), but the connection is dropped every time the page is sent back. You may want to adopt a different architecture, whereby all COM events are sent to a queue and whenever the client makes a new request, check what events are in the queue and notify the user accordingly. Regards, Alvaro
thank you for reply. exactly as i was thinking the idea of queue.it is acceptable to me , but what application would host that queue ? .net remoting service ? how...
-
thank you for reply. exactly as i was thinking the idea of queue.it is acceptable to me , but what application would host that queue ? .net remoting service ? how...
-
Hi Everyone, This is my first post in here , and thank you for the great efforts. I am stuck with a problem and any opinions on how best it could be solved is highly appreciated. I have a COM library that interacts with an external database.It pulls events from the database and present it to COM clients.This should now work from a web application. I need the client to be notified of events coming from the COM library , so it should always be connected or the server would lose reference and the client is gone.I also need to persist this connectivity throughout calls. What is the best solution to go to solve this problem ? Is this actually possible in Asp.NET ? or would i go to a different technology ? I couldnt find a clue but i feel it has a simple solution right at hand that i am not aware of. I have ideas about doing a service and client for every session connected at all times using .NET Remoting but seems daunting to start implementing this without a good reason. All your ideas and discussions are welcomed. Thank You
Hi, Hope the following few references would help in answering your questions, give them a try 316516 How To Sink Managed Visual Basic .NET Events in Internet Explorer Script http://support.microsoft.com/?id=316516 316510 PRB: Security Exception When You Use Event Handlers in Internet Explorer http://support.microsoft.com/?id=316510 814664 PRB: ActiveX Error When You Sink Managed Events in Internet Explorer http://support.microsoft.com/?id=814664
-
Hi, Hope the following few references would help in answering your questions, give them a try 316516 How To Sink Managed Visual Basic .NET Events in Internet Explorer Script http://support.microsoft.com/?id=316516 316510 PRB: Security Exception When You Use Event Handlers in Internet Explorer http://support.microsoft.com/?id=316510 814664 PRB: ActiveX Error When You Sink Managed Events in Internet Explorer http://support.microsoft.com/?id=814664
thanks i will check that , seems interesting stuff I am now actually thinking of a solution that could be useful, need your opinion guys as well. What about doing the whole thing as an ActiveX Control ? and host the control in an ASP.NET application form ? In The ActiveX Control Logic , i guess i would be connected all the time to my COM server , and also would be able to sink events ... suggesstions ?
-
thanks i will check that , seems interesting stuff I am now actually thinking of a solution that could be useful, need your opinion guys as well. What about doing the whole thing as an ActiveX Control ? and host the control in an ASP.NET application form ? In The ActiveX Control Logic , i guess i would be connected all the time to my COM server , and also would be able to sink events ... suggesstions ?