<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-4311234419396881619.post6298023364305479737..comments</id><updated>2009-05-22T02:20:14.625+02:00</updated><category term='linux'/><category term='grails'/><category term='value'/><category term='appengine-web.xml'/><category term='price'/><category term='appengine'/><category term='java'/><category term='groovy'/><category term='appengine-toplist'/><category term='gae-hosted'/><category term='session'/><category term='identification'/><category term='deployment'/><category term='jsp'/><category term='classpath'/><category term='web.xml'/><category term='quotas'/><category term='jvm'/><category term='httpsession'/><category term='gae'/><category term='jvmdance'/><title type='text'>Comments on Stringbuffer.com: Determining if your code is executing in the GAE/J...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.stringbuffer.com/feeds/6298023364305479737/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4311234419396881619/6298023364305479737/comments/default'/><link rel='alternate' type='text/html' href='http://blog.stringbuffer.com/2009/04/determining-if-your-code-is-executing.html'/><author><name>Stringbuffer.com</name><uri>http://www.blogger.com/profile/13625967709587703071</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4311234419396881619.post-4358038136187978636</id><published>2009-05-22T02:20:14.625+02:00</published><updated>2009-05-22T02:20:14.625+02:00</updated><title type='text'>Much better..
//GET this printed once!
static fina...</title><content type='html'>Much better..&lt;br /&gt;//GET this printed once!&lt;br /&gt;static final String YOUR_HOME_DIR ="/home/username/grails......../stage";&lt;br /&gt;String userDir = System.getProperty("user.dir");&lt;br /&gt;&lt;br /&gt;if(YOUR_HOME_DIR.equals(userDir)){&lt;br /&gt;   //DEv Env&lt;br /&gt;}else{&lt;br /&gt;   //Live Env&lt;br /&gt;}</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4311234419396881619/6298023364305479737/comments/default/4358038136187978636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4311234419396881619/6298023364305479737/comments/default/4358038136187978636'/><link rel='alternate' type='text/html' href='http://blog.stringbuffer.com/2009/04/determining-if-your-code-is-executing.html?showComment=1242951614625#c4358038136187978636' title=''/><author><name>Sarath Chandra Pandurangi</name><uri>http://www.blogger.com/profile/11373676873027898680</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_3jYCb9A5iJY/SHutwnT9NaI/AAAAAAAAB94/gRV45M5tDn8/s1600-R/0b473b1.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.stringbuffer.com/2009/04/determining-if-your-code-is-executing.html' ref='tag:blogger.com,1999:blog-4311234419396881619.post-6298023364305479737' source='http://www.blogger.com/feeds/4311234419396881619/posts/default/6298023364305479737' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1583455606'/></entry><entry><id>tag:blogger.com,1999:blog-4311234419396881619.post-8791191938219199626</id><published>2009-05-22T00:30:38.318+02:00</published><updated>2009-05-22T00:30:38.318+02:00</updated><title type='text'>I think there's a small typo in your code example....</title><content type='html'>I think there's a small typo in your code example.  You're missing a "/" at the end of "Google App Engine".  As written, your function will always return true.&lt;br /&gt;&lt;br /&gt;It should read: &lt;br /&gt;&lt;br /&gt;getServletContext().getServerInfo().startsWith("Google App Engine/");</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4311234419396881619/6298023364305479737/comments/default/8791191938219199626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4311234419396881619/6298023364305479737/comments/default/8791191938219199626'/><link rel='alternate' type='text/html' href='http://blog.stringbuffer.com/2009/04/determining-if-your-code-is-executing.html?showComment=1242945038318#c8791191938219199626' title=''/><author><name>David</name><uri>http://www.blogger.com/profile/06849597678558006899</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://4.bp.blogspot.com/_pS0xbloxmkM/SdlEAOxYDBI/AAAAAAAADbo/UJUXlOYElF8/S220/DavidProfile.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.stringbuffer.com/2009/04/determining-if-your-code-is-executing.html' ref='tag:blogger.com,1999:blog-4311234419396881619.post-6298023364305479737' source='http://www.blogger.com/feeds/4311234419396881619/posts/default/6298023364305479737' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-785135589'/></entry><entry><id>tag:blogger.com,1999:blog-4311234419396881619.post-1992909446533320624</id><published>2009-04-12T22:04:00.000+02:00</published><updated>2009-04-12T22:04:00.000+02:00</updated><title type='text'>Alexis: The check is meant to be used for debuggin...</title><content type='html'>Alexis: The check is meant to be used for debugging GAE/J compatibility issues. If possible using such a check should be avoided.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4311234419396881619/6298023364305479737/comments/default/1992909446533320624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4311234419396881619/6298023364305479737/comments/default/1992909446533320624'/><link rel='alternate' type='text/html' href='http://blog.stringbuffer.com/2009/04/determining-if-your-code-is-executing.html?showComment=1239566640000#c1992909446533320624' title=''/><author><name>Stringbuffer.com</name><uri>http://www.blogger.com/profile/13625967709587703071</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.stringbuffer.com/2009/04/determining-if-your-code-is-executing.html' ref='tag:blogger.com,1999:blog-4311234419396881619.post-6298023364305479737' source='http://www.blogger.com/feeds/4311234419396881619/posts/default/6298023364305479737' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-915361899'/></entry><entry><id>tag:blogger.com,1999:blog-4311234419396881619.post-2032843720141265671</id><published>2009-04-12T21:12:00.000+02:00</published><updated>2009-04-12T21:12:00.000+02:00</updated><title type='text'>Wow, I hope people use this as a temporary ugly ha...</title><content type='html'>Wow, I hope people use this as a temporary ugly hack or GAE/j is really breaking WORA.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4311234419396881619/6298023364305479737/comments/default/2032843720141265671'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4311234419396881619/6298023364305479737/comments/default/2032843720141265671'/><link rel='alternate' type='text/html' href='http://blog.stringbuffer.com/2009/04/determining-if-your-code-is-executing.html?showComment=1239563520000#c2032843720141265671' title=''/><author><name>Alexis</name><uri>http://www.blogger.com/profile/12554120080905696708</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.stringbuffer.com/2009/04/determining-if-your-code-is-executing.html' ref='tag:blogger.com,1999:blog-4311234419396881619.post-6298023364305479737' source='http://www.blogger.com/feeds/4311234419396881619/posts/default/6298023364305479737' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1547058274'/></entry></feed>
