<?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: Setting Cache Headers from JBoss</title>
	<atom:link href="http://www.digitalsanctuary.com/tech-blog/java/jboss/setting-cache-headers-from-jboss.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/setting-cache-headers-from-jboss.html</link>
	<description>Java, ATG, Seam, and related Technologies</description>
	<lastBuildDate>Wed, 01 Feb 2012 11:00:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Devon</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/setting-cache-headers-from-jboss.html/comment-page-1#comment-69544</link>
		<dc:creator>Devon</dc:creator>
		<pubDate>Thu, 23 Sep 2010 14:38:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/?p=214#comment-69544</guid>
		<description>Hmm I haven&#039;t used Portlets in JBoss so I&#039;m not sure what gotchas there may be.  What errors are you getting, if any?</description>
		<content:encoded><![CDATA[<p>Hmm I haven&#8217;t used Portlets in JBoss so I&#8217;m not sure what gotchas there may be.  What errors are you getting, if any?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kvic</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/setting-cache-headers-from-jboss.html/comment-page-1#comment-69485</link>
		<dc:creator>kvic</dc:creator>
		<pubDate>Thu, 23 Sep 2010 03:08:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/?p=214#comment-69485</guid>
		<description>Im trying use as portlet application in JBoss Portal. but not work.</description>
		<content:encoded><![CDATA[<p>Im trying use as portlet application in JBoss Portal. but not work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke Samad</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/setting-cache-headers-from-jboss.html/comment-page-1#comment-68957</link>
		<dc:creator>Luke Samad</dc:creator>
		<pubDate>Fri, 17 Sep 2010 20:08:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/?p=214#comment-68957</guid>
		<description>Nicely done, well written and goo catch too. Thanks to all....

Luke S.</description>
		<content:encoded><![CDATA[<p>Nicely done, well written and goo catch too. Thanks to all&#8230;.</p>
<p>Luke S.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devon</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/setting-cache-headers-from-jboss.html/comment-page-1#comment-52462</link>
		<dc:creator>Devon</dc:creator>
		<pubDate>Thu, 11 Feb 2010 15:31:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/?p=214#comment-52462</guid>
		<description>Right again!  Man I need to hire you to review all my code:)  Thanks!</description>
		<content:encoded><![CDATA[<p>Right again!  Man I need to hire you to review all my code:)  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ondrej Medek</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/setting-cache-headers-from-jboss.html/comment-page-1#comment-52448</link>
		<dc:creator>Ondrej Medek</dc:creator>
		<pubDate>Thu, 11 Feb 2010 08:05:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/?p=214#comment-52448</guid>
		<description>Hi Devon.

you can also set the time zone in the static class initializer, put it just bellow the HTTP_DATE_FORMAT declaration:

private static final DateFormat HTTP_DATE_FORMAT = new SimpleDateFormat(&quot;EEE, d MMM yyyy HH:mm:ss zzz&quot;, Locale.ROOT);
static {
	HTTP_DATE_FORMAT.setTimeZone(TimeZone.getTimeZone(&quot;GMT&quot;));
}</description>
		<content:encoded><![CDATA[<p>Hi Devon.</p>
<p>you can also set the time zone in the static class initializer, put it just bellow the HTTP_DATE_FORMAT declaration:</p>
<p>private static final DateFormat HTTP_DATE_FORMAT = new SimpleDateFormat(&#8220;EEE, d MMM yyyy HH:mm:ss zzz&#8221;, Locale.ROOT);<br />
static {<br />
	HTTP_DATE_FORMAT.setTimeZone(TimeZone.getTimeZone(&#8220;GMT&#8221;));<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devon</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/setting-cache-headers-from-jboss.html/comment-page-1#comment-52435</link>
		<dc:creator>Devon</dc:creator>
		<pubDate>Thu, 11 Feb 2010 03:31:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/?p=214#comment-52435</guid>
		<description>Ondrej,

I don&#039;t want to make a dependancy on commons-lang, but the second suggestion is very good!  

I have edited the code to reflect that approach, as in this sort of thing, speed is critical!

Thanks!</description>
		<content:encoded><![CDATA[<p>Ondrej,</p>
<p>I don&#8217;t want to make a dependancy on commons-lang, but the second suggestion is very good!  </p>
<p>I have edited the code to reflect that approach, as in this sort of thing, speed is critical!</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ondrej Medek</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/setting-cache-headers-from-jboss.html/comment-page-1#comment-52401</link>
		<dc:creator>Ondrej Medek</dc:creator>
		<pubDate>Wed, 10 Feb 2010 09:35:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/?p=214#comment-52401</guid>
		<description>Hi,
another option is to use thread safe FastDateFormat from commons-lang http://commons.apache.org/lang/api-release/org/apache/commons/lang/time/FastDateFormat.html

Or just make a static instance of the DateFormat and create a separate instance by clone() method each time you need to use it. It&#039;s a little bit faster then to call the constructor, because the constructor has to parse the format string.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
another option is to use thread safe FastDateFormat from commons-lang <a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/time/FastDateFormat.html" rel="nofollow">http://commons.apache.org/lang/api-release/org/apache/commons/lang/time/FastDateFormat.html</a></p>
<p>Or just make a static instance of the DateFormat and create a separate instance by clone() method each time you need to use it. It&#8217;s a little bit faster then to call the constructor, because the constructor has to parse the format string.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devon</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/setting-cache-headers-from-jboss.html/comment-page-1#comment-38396</link>
		<dc:creator>Devon</dc:creator>
		<pubDate>Wed, 15 Apr 2009 14:03:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/?p=214#comment-38396</guid>
		<description>Ack!  You&#039;re right!  Thanks for the call-out.  I&#039;ll update the code shortly to solve that.

-----------

Code is updated.  Enjoy!</description>
		<content:encoded><![CDATA[<p>Ack!  You&#8217;re right!  Thanks for the call-out.  I&#8217;ll update the code shortly to solve that.</p>
<p>&#8212;&#8212;&#8212;&#8211;</p>
<p>Code is updated.  Enjoy!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jakub G?uszecki</title>
		<link>http://www.digitalsanctuary.com/tech-blog/java/jboss/setting-cache-headers-from-jboss.html/comment-page-1#comment-38364</link>
		<dc:creator>Jakub G?uszecki</dc:creator>
		<pubDate>Wed, 15 Apr 2009 09:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/?p=214#comment-38364</guid>
		<description>Hey
Not a good idea to share DateFormat instance across multiple threads.</description>
		<content:encoded><![CDATA[<p>Hey<br />
Not a good idea to share DateFormat instance across multiple threads.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 6/22 queries in 0.007 seconds using disk: basic
Object Caching 373/388 objects using disk: basic

Served from: www.digitalsanctuary.com @ 2012-02-08 13:12:28 -->
