Solved

wcf on web application

Posted on 2011-03-12
3
254 Views
Last Modified: 2012-06-27
Hi

I have a generic handle .ashx page that will send request data via wcf to data server and then return data to the .ashx page.

As i try to design this .ashx page code behide. How can i avoid creating new connection to wcf server every time the .ashx page is requested?

Thanks,
0
Comment
Question by:JSW21
  • 2
3 Comments
 

Author Comment

by:JSW21
Comment Utility
also may be my question was to ask - is it possible to have a web application that has a part that is running similar to a server application (which will not turn on and off when page requested/close).
0
 
LVL 18

Accepted Solution

by:
Gary Davis earned 500 total points
Comment Utility
There is no reason to hold a connection from your web server to the WCF server. It just boils down to an HTTP request.

For your 2nd question, a web page can return a response to the user and continue to do processing. However, the browser will not be able to reconnect to that process since the response has been returned.

You can also fork off a thread for processing. Consider the context your prosess is running under.

You can do some tricks with cache to start up an asynchronous process periodically. What you do is stick an object (it doesn't matter what) into cache with an expiration time of when you want your process to run and set the cache expiration event to that process. The process should verify the reason it is being called if necessary (there are a few different reasons).

Gary
0
 

Author Closing Comment

by:JSW21
Comment Utility
Many thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video discusses moving either the default database or any database to a new volume.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now