<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Long running queries in servlets</title>
	<atom:link href="http://www.mooreds.com/wordpress/archives/106/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mooreds.com/wordpress/archives/106</link>
	<description></description>
	<lastBuildDate>Tue, 07 Feb 2012 14:11:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Brian Pontarelli</title>
		<link>http://www.mooreds.com/wordpress/archives/106/comment-page-1#comment-398</link>
		<dc:creator>Brian Pontarelli</dc:creator>
		<pubDate>Thu, 11 Mar 2004 19:00:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.mooreds.com/wordpress/?p=106#comment-398</guid>
		<description>Yeah, long transaction support is the name of the solution available in the Verge framework from Inversoft. Before I get to it, I have to put in a disclaimer, this functionality is patented for certain circumstances. For example, if you want to display an ad to the user while they wait, you may need to pay royalties. Lame, I know, but some idiot patented this and the patent office accepted it. You can run google searchs for &quot;interstitial patent&quot; and find some leads on that front.

Okay, here&#039;s how it works:

1. When a request comes into the Verge MVC, the first thing that is done is a server-side include of a JSP page. This page contains some nice HTML for the user to look at while their request is processing. This HTML is partial and does not contain the close HTML tag.
2. Verge processes the request.
3. Rather than forwarding or redirecting to the result JSP (which is impossible because the output stream to the client was flushed in step 1), Verge outputs another HEAD HTML section that contains a meta-refresh. The URL of this meta-refresh is the URL of the result JSP. This will cause the browser to reload the page and display the result.



The HTML of the server-side include might look like this:

&lt;html&gt;
&lt;head&gt;&lt;title&gt;Waiting is boring huh?&lt;title&gt;&lt;head&gt;
&lt;body&gt;
Have a nice wait dude.
&lt;body&gt;



The HTML of the meta-refresh might look like this:

&lt;head&gt;&lt;meta http-equiv=&#039;REFRESH&#039; content=&#039;0;url=/result.jsp&#039;/&gt;&lt;head&gt;
&lt;html&gt;



Of course, this should be transparent to the application developer and probably configured using a configuration file. If you are using a framework such as Struts, I would suggest creating a base Action class that implements this type of functionality and all Actions that require it must extend from that. This will remove the messy-ness from the application code. If you need more complex handling such as multiple wait pages and chained Actions, I would suggest checking out the ActionFlow system of the Verge MVC.

- Brian
</description>
		<content:encoded><![CDATA[<p>Yeah, long transaction support is the name of the solution available in the Verge framework from Inversoft. Before I get to it, I have to put in a disclaimer, this functionality is patented for certain circumstances. For example, if you want to display an ad to the user while they wait, you may need to pay royalties. Lame, I know, but some idiot patented this and the patent office accepted it. You can run google searchs for &#8220;interstitial patent&#8221; and find some leads on that front.</p>
<p>Okay, here&#8217;s how it works:</p>
<p>1. When a request comes into the Verge MVC, the first thing that is done is a server-side include of a JSP page. This page contains some nice HTML for the user to look at while their request is processing. This HTML is partial and does not contain the close HTML tag.<br />
2. Verge processes the request.<br />
3. Rather than forwarding or redirecting to the result JSP (which is impossible because the output stream to the client was flushed in step 1), Verge outputs another HEAD HTML section that contains a meta-refresh. The URL of this meta-refresh is the URL of the result JSP. This will cause the browser to reload the page and display the result.</p>
<p>The HTML of the server-side include might look like this:</p>
<p>&lt;html&gt;<br />
&lt;head&gt;&lt;title&gt;Waiting is boring huh?&lt;title&gt;&lt;head&gt;<br />
&lt;body&gt;<br />
Have a nice wait dude.<br />
&lt;body&gt;</p>
<p>The HTML of the meta-refresh might look like this:</p>
<p>&lt;head&gt;&lt;meta http-equiv=&#8217;REFRESH&#8217; content=&#8217;0;url=/result.jsp&#8217;/&gt;&lt;head&gt;<br />
&lt;html&gt;</p>
<p>Of course, this should be transparent to the application developer and probably configured using a configuration file. If you are using a framework such as Struts, I would suggest creating a base Action class that implements this type of functionality and all Actions that require it must extend from that. This will remove the messy-ness from the application code. If you need more complex handling such as multiple wait pages and chained Actions, I would suggest checking out the ActionFlow system of the Verge MVC.</p>
<p>- Brian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris Thompson</title>
		<link>http://www.mooreds.com/wordpress/archives/106/comment-page-1#comment-397</link>
		<dc:creator>Kris Thompson</dc:creator>
		<pubDate>Tue, 09 Mar 2004 22:33:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.mooreds.com/wordpress/?p=106#comment-397</guid>
		<description>Inversoft&#039;s framework has the feature for long running transactions.  I don&#039;t know how they do it but it has the feature.  

http://www.inversoft.com/products.html

Since you know the author maybe you could ask him -;)</description>
		<content:encoded><![CDATA[<p>Inversoft&#8217;s framework has the feature for long running transactions.  I don&#8217;t know how they do it but it has the feature.  </p>
<p><a href="http://www.inversoft.com/products.html" rel="nofollow">http://www.inversoft.com/products.html</a></p>
<p>Since you know the author maybe you could ask him -;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  www.mooreds.com/wordpress/archives/106/feed ) in 0.20462 seconds, on Feb 8th, 2012 at 10:47 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 8th, 2012 at 11:47 pm UTC -->
