<?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/"
	>

<channel>
	<title>Chinto&#039;s blog &#187; java</title>
	<atom:link href="http://blog.chintoju.com/tag/java/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.chintoju.com</link>
	<description>Can you get something out of nothing...</description>
	<lastBuildDate>Wed, 21 Sep 2011 06:39:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Evaluate an EL expression</title>
		<link>http://blog.chintoju.com/2011/02/evaluate-an-el-expression.html</link>
		<comments>http://blog.chintoju.com/2011/02/evaluate-an-el-expression.html#comments</comments>
		<pubDate>Tue, 08 Feb 2011 07:33:05 +0000</pubDate>
		<dc:creator>Kishore</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[EL]]></category>
		<category><![CDATA[jsf]]></category>
		<category><![CDATA[seam]]></category>

		<guid isPermaLink="false">http://blog.chintoju.com/?p=109</guid>
		<description><![CDATA[Evaluate an EL expression (expression language) in java (i.e. not UI layer JSF/JSP)]]></description>
			<content:encoded><![CDATA[<p>Once you start using EL heavily within your UI, eventually you will want to use it/evaluate it back in your EJB&#8217;s and Seam/Spring components</p>
<p>There are three steps to evaluating an EL expression.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//get current EL context</span>
javax.<span style="color: #006633;">el</span>.<span style="color: #006633;">ELContext</span> elContext <span style="color: #339933;">=</span> javax.<span style="color: #006633;">faces</span>.<span style="color: #006633;">context</span>.<span style="color: #006633;">FacesContext</span>.<span style="color: #006633;">getCurrentInstance</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getELContext</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//get the expression factory (for seam). You can probably do ExpressionFactory.newInstance() if not using seam .</span>
javax.<span style="color: #006633;">el</span>.<span style="color: #006633;">ExpressionFactory</span> expressionFactory <span style="color: #339933;">=</span> org.<span style="color: #006633;">jboss</span>.<span style="color: #006633;">seam</span>.<span style="color: #006633;">core</span>.<span style="color: #006633;">Expressions</span>.<span style="color: #006633;">instance</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getExpressionFactory</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Create value expression as the EL I'm evaluating is a value e.g. #{bean.property} . Create MethodExpression if the EL is a method e.g. #{bean.method()}</span>
javax.<span style="color: #006633;">el</span>.<span style="color: #006633;">ValueExpression</span> valueExpression <span style="color: #339933;">=</span> expressionFactory.<span style="color: #006633;">createValueExpression</span><span style="color: #009900;">&#40;</span>elContext, elExpressionYouAreEvaluating, WhateverYouAreExpecting.<span style="color: #000000; font-weight: bold;">class</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// get value and dont' forget to cast.</span>
whateverYouAreExpecting <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>WhateverYouAreExpecting<span style="color: #009900;">&#41;</span> valueExpression.<span style="color: #006633;">getValue</span><span style="color: #009900;">&#40;</span>elContext<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Yup.. that&#8217;s how convulted this is . It should more be like below</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//NOTE: imaginary code</span>
<span style="color: #003399;">Object</span> value <span style="color: #339933;">=</span> ExpressionFactory.<span style="color: #006633;">getValue</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#{bean.property}&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p><a href="http://www.sfwk.org/Documentation/ELWishList">That&#8217;s what these guys are asking as well..</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chintoju.com/2011/02/evaluate-an-el-expression.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DEBUG logging not working in jboss (jboss 5 and log4j)</title>
		<link>http://blog.chintoju.com/2010/08/debug-logging-not-working-in-jboss-jboss-5-and-log4j.html</link>
		<comments>http://blog.chintoju.com/2010/08/debug-logging-not-working-in-jboss-jboss-5-and-log4j.html#comments</comments>
		<pubDate>Mon, 23 Aug 2010 02:18:58 +0000</pubDate>
		<dc:creator>Kishore</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[jboss]]></category>
		<category><![CDATA[jboss 5]]></category>
		<category><![CDATA[jboss-as]]></category>
		<category><![CDATA[log4j]]></category>

		<guid isPermaLink="false">http://blog.chintoju.com/?p=88</guid>
		<description><![CDATA[Just did a small post about log4j DEBUG logging not working in jboss 5.1.0. http://community.jboss.org/people/kchintoju/blog/2010/08/22/debug-logging-not-working-in-jboss-jboss-5-and-log4j]]></description>
			<content:encoded><![CDATA[<p>Just did a small post about log4j DEBUG logging not working in jboss 5.1.0.</p>
<p><a href="http://community.jboss.org/people/kchintoju/blog/2010/08/22/debug-logging-not-working-in-jboss-jboss-5-and-log4j">http://community.jboss.org/people/kchintoju/blog/2010/08/22/debug-logging-not-working-in-jboss-jboss-5-and-log4j</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chintoju.com/2010/08/debug-logging-not-working-in-jboss-jboss-5-and-log4j.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subversion proxy connection issues with Eclipse (In windows)</title>
		<link>http://blog.chintoju.com/2009/03/subversion-proxy-connection-issues-with-eclipse-in-windows.html</link>
		<comments>http://blog.chintoju.com/2009/03/subversion-proxy-connection-issues-with-eclipse-in-windows.html#comments</comments>
		<pubDate>Wed, 11 Mar 2009 06:56:33 +0000</pubDate>
		<dc:creator>Kishore</dc:creator>
				<category><![CDATA[eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[subclipse]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[subversive]]></category>

		<guid isPermaLink="false">http://blog.chintoju.com/?p=65</guid>
		<description><![CDATA[If you are having issues connecting to your subversion repositories from Eclipse (May be with Subversive/Subclipse). Try the following. Enter proxy details into Subversion configuration: Open servers file in the following location Window XP C:\Documents and Settings\MyUserId\Application Data\Subversion\servers Windows Vista C:\Users\Clientside\AppData\Roaming\Subversion\servers Update following lines at the end of file [global] http-proxy-exceptions = yourproxy exceptions (e.g. [...]]]></description>
			<content:encoded><![CDATA[<p>If you are having issues connecting to your subversion repositories from Eclipse (May be with Subversive/Subclipse). Try the following.</p>
<h2>Enter proxy details into Subversion configuration:</h2>
<h3>Open <strong>servers</strong> file in the following location</h3>
<dl>
<dt>Window XP</dt>
<dd>C:\Documents and Settings\MyUserId\Application Data\Subversion\<strong>servers</strong></dd>
<dt>Windows Vista</dt>
<dd>C:\Users\Clientside\AppData\Roaming\Subversion\<strong>servers</strong></dd>
</dl>
<h3>Update following lines at the end of file</h3>
<pre>[global]
http-proxy-exceptions = yourproxy exceptions (e.g. dev.company.com.au)
http-proxy-host = yourproxyhost (e.g. proxy.company.com.au)
http-proxy-port = your proxy port (e.g. 8080)
http-proxy-username = proxyusername
http-proxy-password = proxypassword</pre>
<p><em>This step might not be needed all the time </em></p>
<h2>Update Eclipse Proxy settings</h2>
<p><strong>Windows > Preferences</strong> </p>
<p>Type &#8216;<strong>proxy</strong>&#8216; in the filter text box. Go to &#8216;Network Connections&#8217; config page. Choose manual proxy configuration and Update the proxy details.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chintoju.com/2009/03/subversion-proxy-connection-issues-with-eclipse-in-windows.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse/RAD debugger timing out before starting server</title>
		<link>http://blog.chintoju.com/2008/06/eclipserad-debugger-timing-out-before-starting-server.html</link>
		<comments>http://blog.chintoju.com/2008/06/eclipserad-debugger-timing-out-before-starting-server.html#comments</comments>
		<pubDate>Sat, 21 Jun 2008 00:31:00 +0000</pubDate>
		<dc:creator>Kishore</dc:creator>
				<category><![CDATA[eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://blog.chintoju.com/?p=21</guid>
		<description><![CDATA[Is your RAD/Eclipse Java debugger timing out before starting the server? Have a gazillion projects in RAD/Eclipse which all have to be deployed in server for debugging all the time like I do? There is an easy way to increase RAD/Eclipse debugger timeout. Go to Windows &#62; Preferences &#62; Java &#62; Debug Increase both &#8220;Debugger [...]]]></description>
			<content:encoded><![CDATA[<p>Is your RAD/Eclipse Java debugger timing out before starting the server?</p>
<p>Have a gazillion projects in RAD/Eclipse which all have to be deployed in server for debugging all the time like I do?</p>
<p>There is an easy way to increase RAD/Eclipse debugger timeout.</p>
<ol type="1">
<li>Go to <strong>Windows &gt; Preferences &gt; Java &gt; Debug<br />
</strong></li>
<li>Increase both &#8220;Debugger time-out&#8221; and &#8220;Launch time-out&#8221; value to be much larger. Try values like 180000/360000 respectively for time-out values of 3 and 6 mins.</li>
</ol>
<p><a href="http://bp0.blogger.com/_znpAdmT-J6Q/SFyEvDL2aqI/AAAAAAAACIA/IohQG_SUmTs/s1600-h/RAD_Eclipse_ScreenShot002.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5214188412431919778" style="margin: 0pt 10px 10px 0pt; cursor: pointer;" src="http://bp0.blogger.com/_znpAdmT-J6Q/SFyEvDL2aqI/AAAAAAAACIA/IohQG_SUmTs/s320/RAD_Eclipse_ScreenShot002.png" border="0" alt="" /></a></p>
<p>Full article at IBM</p>
<p><a href="http://www-1.ibm.com/support/docview.wss?rs=2042&amp;context=SSRTLW&amp;context=SSJM4G&amp;context=SSSTY3&amp;context=SSCGQ7C&amp;context=SSDV2W&amp;uid=swg21212755&amp;loc=en_US&amp;cs=UTF-8&amp;lang=en"></a><a href="http://www-1.ibm.com/support/docview.wss?rs=2042&amp;context=SSRTLW&amp;context=SSJM4G&amp;context=SSSTY3&amp;context=SSCGQ7C&amp;context=SSDV2W&amp;uid=swg21212755&amp;loc=en_US&amp;cs=UTF-8&amp;lang=en">http://www-1.ibm.com/support/docview.wss?rs=2042&amp;context=SSRTLW&amp;context=SSJM4G&amp;context=SSSTY3&amp;context=SSCGQ7C&amp;context=SSDV2W&amp;uid=swg21212755&amp;loc=en_US&amp;cs=UTF-8&amp;lang=en</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chintoju.com/2008/06/eclipserad-debugger-timing-out-before-starting-server.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

