Solved

Can I open a persistent conection using cfhttp?

Posted on 2009-04-14
3
257 Views
Last Modified: 2013-12-24
If I use cfhttp tag in coldfusion to output data from an oracle database, can I maintain a persistent connection so that when the database values change in oracle, the page is updated without refreshing the page?

If not, is there another tag that will do this?
0
Comment
Question by:steveweems
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 19

Expert Comment

by:Jones911
ID: 24142979
No you will have to poll.
0
 

Author Comment

by:steveweems
ID: 24143109
Can you explain polling?  Is there a coldfusion tag for that?
0
 
LVL 36

Accepted Solution

by:
SidFishes earned 125 total points
ID: 24143448
just to elaborate... an http call can never be "persistent" by designs its a get and forget method. A call to a server happens once, and then server knows nothing about later calls (session variables were invented for this reason..to maintain state)

cfhttp is doing exactly what a browser would do so therefore, it can only do what a browser can do (and less in fact as it doesn't handle javasacript or other things like flash well)

You could use cfschedule to do a cfhttp call every x minutesand but you'd still have to handle screen updates but this probably won;t do what you want

You can "simulate" a persistent connection by doing an ajax call using a JS timer and updating behind the scenes but these are distinct calls to the server/db. This is the way most screen updates are handled in the web 2.0 world but they only look like they're not hitting the server/db... they actually do.
0

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

734 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