<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>KnobsLeversButtons &#187; SelfDiagnose</title>
	<atom:link href="http://blog.pulleman.com/category/selfdiagnose/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pulleman.com</link>
	<description>Software thingabees. Little things</description>
	<lastBuildDate>Sun, 13 Nov 2011 08:42:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.pulleman.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>KnobsLeversButtons &#187; SelfDiagnose</title>
		<link>http://blog.pulleman.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.pulleman.com/osd.xml" title="KnobsLeversButtons" />
	<atom:link rel='hub' href='http://blog.pulleman.com/?pushpress=hub'/>
		<item>
		<title>SelfDiagnose and OGNL and check your deployment</title>
		<link>http://blog.pulleman.com/2008/06/16/selfdiagnose-and-ognl-and-check-your-deployment/</link>
		<comments>http://blog.pulleman.com/2008/06/16/selfdiagnose-and-ognl-and-check-your-deployment/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 19:50:15 +0000</pubDate>
		<dc:creator>Ronald Pulleman</dc:creator>
				<category><![CDATA[ATG]]></category>
		<category><![CDATA[Endeca]]></category>
		<category><![CDATA[OGNL]]></category>
		<category><![CDATA[SelfDiagnose]]></category>

		<guid isPermaLink="false">http://blog.pulleman.com/?p=89</guid>
		<description><![CDATA[Some time ago I wrote about selfdiagnose-the-world-according-to-my-atg-application. Since then SelfDiagnose has added some nifty features. The latest release of SelfDiagnose now adds support for OGNL. This gives SelfDiagnose some extra punch. I can now use constructions like: &#60;checkvaluematches value="${@java.lang.Integer@parseInt(configList.length)}" comment="Number of configured Endeca instances" pattern=".*" /&#62; or constructions like &#60;checkendecaservice host="${configList[0].host}" port="${configList[0].port}" query="N=0" comment="Endeca instance [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pulleman.com&amp;blog=913562&amp;post=89&amp;subd=pulleman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Some time ago I wrote about <a href="http://blog.pulleman.com/2008/04/17/selfdiagnose-the-world-according-to-my-atg-application">selfdiagnose-the-world-according-to-my-atg-application</a>.<br />
Since then SelfDiagnose has added some nifty features. The latest release of  <a href="http://selfdiagnose.sourceforge.net/">SelfDiagnose</a> now adds support for <a href="http://www.ognl.org/">OGNL</a>. This gives SelfDiagnose some extra punch. I can now use constructions like:</p>
<pre><span class="text text_blog text_blog_html"><span class="text text_html"><span class="meta meta_tag meta_tag_other meta_tag_other_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_other entity_name_tag_other_html">checkvaluematches</span>
    <span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_html">value</span>=<span class="string string_quoted string_quoted_double string_quoted_double_html"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_html">"</span>${@java.lang.Integer@parseInt(configList.length)}<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_html">"</span></span>
    <span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_html">comment</span>=<span class="string string_quoted string_quoted_double string_quoted_double_html"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_html">"</span>Number of configured Endeca instances<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_html">"</span></span>
    <span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_html">pattern</span>=<span class="string string_quoted string_quoted_double string_quoted_double_html"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_html">"</span>.*<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_html">"</span></span> /<span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
</span></span></pre>
<p>or constructions like</p>
<pre> <span class="text text_blog text_blog_html"><span class="text text_html"><span class="meta meta_tag meta_tag_other meta_tag_other_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_other entity_name_tag_other_html">checkendecaservice</span> <span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_html">host</span>=<span class="string string_quoted string_quoted_double string_quoted_double_html"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_html">"</span>${configList[0].host}<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_html">"</span></span> <BR><span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_html">   port</span>=<span class="string string_quoted string_quoted_double string_quoted_double_html"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_html">"</span>${configList[0].port}<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_html">"</span></span> <span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_html">query</span>=<span class="string string_quoted string_quoted_double string_quoted_double_html"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_html">"</span>N=0<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_html">"</span></span>  <span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_html"> comment</span>=<span class="string string_quoted string_quoted_double string_quoted_double_html"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_html">"</span>Endeca instance 1 connection test<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_html">"</span></span>/<span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span></span></span></pre>
<p>The <code>${configList[0].port}</code> is a typical OGNL construction.</p>
<p>The CheckEndecaService can also return the Endeca <code>com.endeca.navigation.ENEQueryResults</code> response.<br />
With OGNL you can easily dissect this Endeca response.</p>
<p>
This can be extremely handy to query for the latest Forge or pipeline version of an <a href="http://www.endeca.com">Endeca</a> build in the different ATG environments were you cannot directly access those services!	For instance in production.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pulleman.wordpress.com/89/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pulleman.wordpress.com/89/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pulleman.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pulleman.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pulleman.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pulleman.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pulleman.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pulleman.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pulleman.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pulleman.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pulleman.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pulleman.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pulleman.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pulleman.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pulleman.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pulleman.wordpress.com/89/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pulleman.com&amp;blog=913562&amp;post=89&amp;subd=pulleman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pulleman.com/2008/06/16/selfdiagnose-and-ognl-and-check-your-deployment/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/561387d0c0c3fc3d68c109499fa468e6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ronald Pulleman</media:title>
		</media:content>
	</item>
		<item>
		<title>SelfDiagnose, the world according to my (ATG) application</title>
		<link>http://blog.pulleman.com/2008/04/17/selfdiagnose-the-world-according-to-my-atg-application/</link>
		<comments>http://blog.pulleman.com/2008/04/17/selfdiagnose-the-world-according-to-my-atg-application/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 21:15:34 +0000</pubDate>
		<dc:creator>Ronald Pulleman</dc:creator>
				<category><![CDATA[ATG]]></category>
		<category><![CDATA[Endeca]]></category>
		<category><![CDATA[SelfDiagnose]]></category>

		<guid isPermaLink="false">http://blog.pulleman.com/?p=80</guid>
		<description><![CDATA[We have all been there, when developing a J2EE application, the environment nightmares. When your stuff goes through the different stages of integration, acceptance, production etc. Stuff just breaksTM, because of misconfiguration. Configuration which you have no control over. Missing a database table here, a JNDI binding forgotten, a URL not reachable, weird classloading nightmares, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pulleman.com&amp;blog=913562&amp;post=80&amp;subd=pulleman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We have all been there, when developing a J2EE application, the environment nightmares. When your stuff goes through the different stages of integration, acceptance, production etc. Stuff just breaks<sup>TM</sup>, because of misconfiguration. Configuration which you have no control over.</p>
<p>Missing a database table here, a JNDI binding forgotten,  a URL not reachable, weird classloading nightmares, because another jar is being used in acceptance.</p>
<p>Here is where <a href="http://selfdiagnose.sourceforge.net">SelfDiagnose</a> comes to the rescue. Somehow this little gem gets no press whatsoever. Lately some new tasks have been added to the mix. This <a href="http://philemonworks.wordpress.com/2008/04/11/foreign-compile-time-dependencies-in-selfdiagnose/">blog</a> by Ernest explains something about compile-time dependencies. But more interestingly (to me), SelfDiagnose now contains an <code>CheckAtgComponentProperty</code> task and a <code>CheckEndecaService</code>.<br />
The <code>CheckAtgComponentProperty</code> lets you check an ATG property. I know this can be done with ATG&#8217;s component browser as well, but hold on.<br />
The <code>CheckEndecaService</code> will check the availability of the Endeca service.</p>
<p>The combination of these tasks and the chaining of these creates a powerful diagnosis. See the following snippet of code, where first an ATG property is queried which then is chained to the Endeca task. Another nifty SelfDiagnose feature.<br />
This code is heavily customer oriented, but you will get the idea.</p>
<pre><span class="linenum">    1</span> <span class="text text_blog text_blog_html"><span class="text text_html"><span class="meta meta_tag meta_tag_other meta_tag_other_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_other entity_name_tag_other_html">checkatgcomponentproperty</span>
<span class="linenum">    2</span>     <span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_html">component</span>=<span class="string string_quoted string_quoted_double string_quoted_double_html"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_html">"</span>/wsp/common/services/search/balancer/connections/EndecaConnection<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_html">"</span></span>
<span class="linenum">    3</span>     <span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_html">property</span>=<span class="string string_quoted string_quoted_double string_quoted_double_html"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_html">"</span>host<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_html">"</span></span>
<span class="linenum">    4</span>     <span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_html">comment</span>=<span class="string string_quoted string_quoted_double string_quoted_double_html"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_html">"</span>Endeca Host<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_html">"</span></span>
<span class="linenum">    5</span>     <span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_html">var</span>=<span class="string string_quoted string_quoted_double string_quoted_double_html"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_html">"</span>eneHost<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_html">"</span></span>/<span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
<span class="linenum">    6</span> <span class="meta meta_tag meta_tag_other meta_tag_other_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_other entity_name_tag_other_html">checkatgcomponentproperty</span>
<span class="linenum">    7</span>     <span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_html">component</span>=<span class="string string_quoted string_quoted_double string_quoted_double_html"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_html">"</span>/wsp/common/services/search/balancer/connections/EndecaConnection<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_html">"</span></span>
<span class="linenum">    8</span>     <span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_html">property</span>=<span class="string string_quoted string_quoted_double string_quoted_double_html"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_html">"</span>port<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_html">"</span></span>
<span class="linenum">    9</span>     <span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_html">comment</span>=<span class="string string_quoted string_quoted_double string_quoted_double_html"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_html">"</span>Endeca Port<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_html">"</span></span>
<span class="linenum">   10</span>     <span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_html">var</span>=<span class="string string_quoted string_quoted_double string_quoted_double_html"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_html">"</span>enePort<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_html">"</span></span>/<span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
<span class="linenum">   11</span> <span class="meta meta_tag meta_tag_other meta_tag_other_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_other entity_name_tag_other_html">checkendecaservice</span> <span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_html">host</span>=<span class="string string_quoted string_quoted_double string_quoted_double_html"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_html">"</span>${eneHost}<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_html">"</span></span> <span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_html">port</span>=<span class="string string_quoted string_quoted_double string_quoted_double_html"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_html">"</span>${enePort}<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_html">"</span></span> <span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_html">query</span>=<span class="string string_quoted string_quoted_double string_quoted_double_html"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_html">"</span>N=0<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_html">"</span></span>/<span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span></span></span></pre>
<p>The real cool and not so well understood part about SelfDiagnose in my opinion, is that it will check a bunch of tasks from inside the environment you are executing. This means that the above example will output the ATG configuration and check the configured Endeca instance of the actual environment.<br />
Hitting the selfdiagnose.html url will show:</p>
<p><img src="http://pulleman.files.wordpress.com/2008/04/endeca-diagnose.png?w=520&#038;h=330" alt="Endeca Diagnose" height="330" width="520"></p>
<p>I just mentioned the ATG and Endeca tasks, but there is a lot more which can be extremely helpful.<br />
This nifty feature can save some energy when something is misconfigured. Checking the selfdiagnose URL can save a lot of time.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pulleman.wordpress.com/80/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pulleman.wordpress.com/80/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pulleman.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pulleman.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pulleman.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pulleman.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pulleman.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pulleman.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pulleman.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pulleman.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pulleman.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pulleman.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pulleman.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pulleman.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pulleman.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pulleman.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pulleman.com&amp;blog=913562&amp;post=80&amp;subd=pulleman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pulleman.com/2008/04/17/selfdiagnose-the-world-according-to-my-atg-application/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/561387d0c0c3fc3d68c109499fa468e6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ronald Pulleman</media:title>
		</media:content>

		<media:content url="http://pulleman.files.wordpress.com/2008/04/endeca-diagnose.png" medium="image">
			<media:title type="html">Endeca Diagnose</media:title>
		</media:content>
	</item>
	</channel>
</rss>
