<?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>Developer  Insight</title>
	<atom:link href="http://developerinsight.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://developerinsight.wordpress.com</link>
	<description></description>
	<lastBuildDate>Wed, 19 Nov 2008 11:47:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='developerinsight.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Developer  Insight</title>
		<link>http://developerinsight.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://developerinsight.wordpress.com/osd.xml" title="Developer  Insight" />
	<atom:link rel='hub' href='http://developerinsight.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Three main things that you should consider when improving the performance of a sql query in oracle (or) mysql</title>
		<link>http://developerinsight.wordpress.com/2008/11/19/three-main-things-that-you-should-consider-when-improving-the-performance-of-a-sql-query-in-oracle-or-mysql/</link>
		<comments>http://developerinsight.wordpress.com/2008/11/19/three-main-things-that-you-should-consider-when-improving-the-performance-of-a-sql-query-in-oracle-or-mysql/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 11:47:00 +0000</pubDate>
		<dc:creator>Rama</dc:creator>
				<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://developerinsight.wordpress.com/2008/11/19/three-main-things-that-you-should-consider-when-improving-the-performance-of-a-sql-query-in-oracle-or-mysql/</guid>
		<description><![CDATA[The below are three things which are very important in solving performance issues. Once you mastered the below three terms you can able to deal effectively with 80-90% of the performance issues. What are those three? &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; 1) Functionality&#160; of the query. 2) Driver Table. 3) Row Source. Explaining them in detail &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; 1)&#160;&#160; Functionality [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developerinsight.wordpress.com&amp;blog=2191084&amp;post=43&amp;subd=developerinsight&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The below are three things which are very important in solving performance issues.    <br />Once you mastered the below three terms you can able to deal effectively with 80-90% of the performance issues.</p>
<p>What are those three?    <br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;    <br /> 1) Functionality&#160; of the query.    <br /> 2) Driver Table.     <br /> 3) Row Source.</p>
<p> Explaining them in detail    <br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;    <br />1)&#160;&#160; Functionality of the query :&#160; (Functionality of the query is tightly coupled with the performance)    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; You should be&#160; able to write the functional behaviour of the query in plain English.By writing this in plain&#160; english&#160; you have solved 50% of the problem. Now from that understanding of the query think in your own way how the query should be evaluated which is the first table,second table and so on.</p>
<p>&#160; <br />2) Driver Table :&#160; (The first table that optimizer chooses)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;    <br />&#160;&#160; After understanding the&#160; functional behaviour of the query think of the first&#160; table that we should evaluate.This first table is called the driver table.Once again the first table which the optimizer chooses in evaluating the query is called DRIVER TABLE.    <br />In the below explain Plan (at the end) the DRIVER TABLE is&#160; <a href="http://chkIndex.jsp?tableOwner=JTF&amp;tableName=JTF_RS_SALESREPS">JTF_RS_SALESREPS</a> .    <br />Why it matters ?    <br />The output of the first table will be piped with the rest of the tables in getting the output of the query.we want the output of the first table should be as minimum as possible     <br /> Why?     <br />&#160;&#160; WHen it is minimum, the number of rows that are evaluated in the next stages of the explain plan is also minimum there by minimizing the total time.When it is very large the number of rows that are evaluated in the next stages of the explain plan are also very large there by maximizing the total time.    <br />Once again : By only understanding the functional behaviour of the query you will get the Driver table of the query.</p>
<p>3) Row Source : (Number of rows that&#160; optimizer has fetched at every stage of the query)    <br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;    <br />&#160; Examine the below explain plan ROWS column it indicates the number of rows that&#160; optimizer has fetched&#160; at each and every stage.This is called the RowSource of the query.    <br />1) The problematic part of the plan can be figured out by examining the ROWSOURCE of the query. If the row source for a particular stage is high then that stage is problematic.    <br />2)&#160; If there is large difference between the access predicate fetched rows (Ex: ID 8&#160; (8th row) in below EXPLAIN PLAN) and filter predicate resultant rows (See : ID&#160; 7&#160; (7th row)&#160; in below EXPLAIN PLAN) we need to push strong filters predicates into the Access&#160; filter predicates for better performance.    <br />Access Predicates and Filter Predicates (you need to figure it our for more better understanding)    <br />~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    <br />&#160; Access Predicates : the columns that are used in accessing the rows (usually indexed columns)     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; (Ex See Row where Column ID values is 8 in below explain plan)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160; Filter Predicates : Filter predicates are being applied once the rows are being fetched&#160; using access predicates.     <br />&#160;&#160;&#160; (usually non indexed columns)     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; (Ex See Row where Column ID values is 7 in below explain plan)    <br />by examining all the above aspects you will find the problem in the query.Once the problem is found you need to provide solution to the problem by&#160; rewriting the query,adding hints,changing the indexes,and so on&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..</p>
<p>One final Note    <br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;    <br />if you could not able to tune a query think of an alternative query ( with different tables) which provides the same functional behaviour as the earlier one.</p>
<p>Execution Plan<br />
<table cellpadding="0" border="0">
<tbody>
<tr>
<td width="30">
<p>Order</p>
</td>
<td width="30">
<p>ID</p>
</td>
<td width="550">
<p>Operations</p>
</td>
<td width="40">
<p>Cost</p>
</td>
<td width="40">
<p>Rows</p>
</td>
<td width="10">
<p>A</p>
</td>
<td width="10">
<p>F</p>
</td>
</tr>
<tr>
<td width="30">
<p>18</p>
</td>
<td width="30">
<p>0</p>
</td>
<td width="550">
<p>SELECT STATEMENT&#160; </p>
</td>
<td width="40">
<p>152</p>
</td>
<td width="40">
<p>554</p>
</td>
<td width="10">&#160;</td>
<td width="10">&#160;</td>
</tr>
<tr>
<td width="30">
<p>17</p>
</td>
<td width="30">
<p>1</p>
</td>
<td width="550">
<p>.HASH JOIN&#160; </p>
</td>
<td width="40">
<p>152</p>
</td>
<td width="40">
<p>554</p>
</td>
<td width="10">
<p><a href="http://developerinsight.files.wordpress.com/2008/11/clip-image001.gif"><img title="clip_image001" style="display:inline;" height="36" alt="clip_image001" src="http://developerinsight.files.wordpress.com/2008/11/clip-image001-thumb.gif?w=36&#038;h=36" width="36" border="0" /></a></p>
</td>
<td width="10">&#160;</td>
</tr>
<tr>
<td width="30">
<p>15</p>
</td>
<td width="30">
<p>2</p>
</td>
<td width="550">
<p>..HASH JOIN OUTER </p>
</td>
<td width="40">
<p>25</p>
</td>
<td width="40">
<p>545</p>
</td>
<td width="10">
<p><a href="http://developerinsight.files.wordpress.com/2008/11/clip-image0011.gif"><img title="clip_image001[1]" style="display:inline;" height="36" alt="clip_image001[1]" src="http://developerinsight.files.wordpress.com/2008/11/clip-image0011-thumb.gif?w=36&#038;h=36" width="36" border="0" /></a></p>
</td>
<td width="10">&#160;</td>
</tr>
<tr>
<td width="30">
<p>10</p>
</td>
<td width="30">
<p>3</p>
</td>
<td width="550">
<p>&#8230;MERGE JOIN CARTESIAN </p>
</td>
<td width="40">
<p>18</p>
</td>
<td width="40">
<p>545</p>
</td>
<td width="10">&#160;</td>
<td width="10">&#160;</td>
</tr>
<tr>
<td width="30">
<p>7</p>
</td>
<td width="30">
<p>4</p>
</td>
<td width="550">
<p>..:.NESTED LOOPS&#160; </p>
</td>
<td width="40">
<p>12</p>
</td>
<td width="40">
<p>1</p>
</td>
<td width="10">&#160;</td>
<td width="10">&#160;</td>
</tr>
<tr>
<td width="30">
<p>4</p>
</td>
<td width="30">
<p>5</p>
</td>
<td width="550">
<p>..:..NESTED LOOPS&#160; </p>
</td>
<td width="40">
<p>8</p>
</td>
<td width="40">
<p>4</p>
</td>
<td width="10">&#160;</td>
<td width="10">&#160;</td>
</tr>
<tr>
<td width="30">
<p>1</p>
</td>
<td width="30">
<p>6</p>
</td>
<td width="550">
<p>..:&#8230;TABLE ACCESS FULL <a href="http://chkIndex.jsp?tableOwner=JTF&amp;tableName=JTF_RS_SALESREPS">JTF_RS_SALESREPS</a></p>
</td>
<td width="40">
<p>4</p>
</td>
<td width="40">
<p>4</p>
</td>
<td width="10">&#160;</td>
<td width="10">
<p><a href="http://developerinsight.files.wordpress.com/2008/11/clip-image0012.gif"><img title="clip_image001[2]" style="display:inline;" height="36" alt="clip_image001[2]" src="http://developerinsight.files.wordpress.com/2008/11/clip-image0012-thumb.gif?w=36&#038;h=36" width="36" border="0" /></a></p>
</td>
</tr>
<tr>
<td width="30">
<p>3</p>
</td>
<td width="30">
<p>7</p>
</td>
<td width="550">
<p>..:&#8230;TABLE ACCESS BY INDEX ROWID <a href="http://chkIndex.jsp?tableOwner=JTF&amp;tableName=JTF_RS_RESOURCE_EXTNS">JTF_RS_RESOURCE_EXTNS</a></p>
</td>
<td width="40">
<p>1</p>
</td>
<td width="40">
<p>1</p>
</td>
<td width="10">&#160;</td>
<td width="10">
<p><a href="http://developerinsight.files.wordpress.com/2008/11/clip-image0013.gif"><img title="clip_image001[3]" style="display:inline;" height="36" alt="clip_image001[3]" src="http://developerinsight.files.wordpress.com/2008/11/clip-image0013-thumb.gif?w=36&#038;h=36" width="36" border="0" /></a></p>
</td>
</tr>
<tr>
<td width="30">
<p>2</p>
</td>
<td width="30">
<p>8</p>
</td>
<td width="550">
<p>..:&#8230;.INDEX UNIQUE SCAN <a href="http://chkIndex.jsp?in=JTF_RS_RESOURCE_EXTNS_U1&amp;io=JTF">JTF_RS_RESOURCE_EXTNS_U1</a> [RESOURCE_ID ]</p>
</td>
<td width="40">
<p>0</p>
</td>
<td width="40">
<p>1</p>
</td>
<td width="10">
<p><a href="http://developerinsight.files.wordpress.com/2008/11/clip-image0014.gif"><img title="clip_image001[4]" style="display:inline;" height="36" alt="clip_image001[4]" src="http://developerinsight.files.wordpress.com/2008/11/clip-image0014-thumb.gif?w=36&#038;h=36" width="36" border="0" /></a></p>
</td>
<td width="10">&#160;</td>
</tr>
<tr>
<td width="30">
<p>6</p>
</td>
<td width="30">
<p>9</p>
</td>
<td width="550">
<p>..:..TABLE ACCESS BY INDEX ROWID <a href="http://chkIndex.jsp?tableOwner=JTF&amp;tableName=JTF_RS_RESOURCE_EXTNS_TL">JTF_RS_RESOURCE_EXTNS_TL</a></p>
</td>
<td width="40">
<p>1</p>
</td>
<td width="40">
<p>1</p>
</td>
<td width="10">&#160;</td>
<td width="10">&#160;</td>
</tr>
<tr>
<td width="30">
<p>5</p>
</td>
<td width="30">
<p>10</p>
</td>
<td width="550">
<p>..:&#8230;INDEX UNIQUE SCAN <a href="http://chkIndex.jsp?in=JTF_RS_EXTNS_U1&amp;io=JTF">JTF_RS_EXTNS_U1</a> [RESOURCE_ID,LANGUAGE,CATEGORY ]</p>
</td>
<td width="40">
<p>0</p>
</td>
<td width="40">
<p>1</p>
</td>
<td width="10">
<p><a href="http://developerinsight.files.wordpress.com/2008/11/clip-image0015.gif"><img title="clip_image001[5]" style="display:inline;" height="36" alt="clip_image001[5]" src="http://developerinsight.files.wordpress.com/2008/11/clip-image0015-thumb.gif?w=36&#038;h=36" width="36" border="0" /></a></p>
</td>
<td width="10">
<p><a href="http://developerinsight.files.wordpress.com/2008/11/clip-image0016.gif"><img title="clip_image001[6]" style="display:inline;" height="36" alt="clip_image001[6]" src="http://developerinsight.files.wordpress.com/2008/11/clip-image0016-thumb.gif?w=36&#038;h=36" width="36" border="0" /></a></p>
</td>
</tr>
<tr>
<td width="30">
<p>9</p>
</td>
<td width="30">
<p>11</p>
</td>
<td width="550">
<p>..:.BUFFER SORT </p>
</td>
<td width="40">
<p>17</p>
</td>
<td width="40">
<p>896</p>
</td>
<td width="10">&#160;</td>
<td width="10">&#160;</td>
</tr>
<tr>
<td width="30">
<p>8</p>
</td>
<td width="30">
<p>12</p>
</td>
<td width="550">
<p>..:..TABLE ACCESS FULL <a href="http://chkIndex.jsp?tableOwner=AR&amp;tableName=HZ_CUST_ACCOUNTS">HZ_CUST_ACCOUNTS</a></p>
</td>
<td width="40">
<p>6</p>
</td>
<td width="40">
<p>896</p>
</td>
<td width="10">&#160;</td>
<td width="10">&#160;</td>
</tr>
<tr>
<td width="30">
<p>14</p>
</td>
<td width="30">
<p>13</p>
</td>
<td width="550">
<p>&#8230;VIEW&#160; <a href="http://chkIndex.jsp?tableOwner=APPS&amp;tableName=ORG_FREIGHT_VL">ORG_FREIGHT_VL</a></p>
</td>
<td width="40">
<p>6</p>
</td>
<td width="40">
<p>445</p>
</td>
<td width="10">&#160;</td>
<td width="10">&#160;</td>
</tr>
<tr>
<td width="30">
<p>13</p>
</td>
<td width="30">
<p>14</p>
</td>
<td width="550">
<p>..:.NESTED LOOPS&#160; </p>
</td>
<td width="40">
<p>6</p>
</td>
<td width="40">
<p>445</p>
</td>
<td width="10">&#160;</td>
<td width="10">&#160;</td>
</tr>
<tr>
<td width="30">
<p>11</p>
</td>
<td width="30">
<p>15</p>
</td>
<td width="550">
<p>..:..TABLE ACCESS FULL <a href="http://chkIndex.jsp?tableOwner=INV&amp;tableName=ORG_FREIGHT_TL">ORG_FREIGHT_TL</a></p>
</td>
<td width="40">
<p>6</p>
</td>
<td width="40">
<p>445</p>
</td>
<td width="10">&#160;</td>
<td width="10">
<p><a href="http://developerinsight.files.wordpress.com/2008/11/clip-image0017.gif"><img title="clip_image001[7]" style="display:inline;" height="36" alt="clip_image001[7]" src="http://developerinsight.files.wordpress.com/2008/11/clip-image0017-thumb.gif?w=36&#038;h=36" width="36" border="0" /></a></p>
</td>
</tr>
<tr>
<td width="30">
<p>12</p>
</td>
<td width="30">
<p>16</p>
</td>
<td width="550">
<p>..:..INDEX UNIQUE SCAN <a href="http://chkIndex.jsp?in=MTL_PARAMETERS_U1&amp;io=INV">MTL_PARAMETERS_U1</a> [ORGANIZATION_ID ]</p>
</td>
<td width="40">
<p>0</p>
</td>
<td width="40">
<p>1</p>
</td>
<td width="10">
<p><a href="http://developerinsight.files.wordpress.com/2008/11/clip-image0018.gif"><img title="clip_image001[8]" style="display:inline;" height="36" alt="clip_image001[8]" src="http://developerinsight.files.wordpress.com/2008/11/clip-image0018-thumb.gif?w=36&#038;h=36" width="36" border="0" /></a></p>
</td>
<td width="10">&#160;</td>
</tr>
<tr>
<td width="30">
<p>16</p>
</td>
<td width="30">
<p>17</p>
</td>
<td width="550">
<p>..TABLE ACCESS FULL <a href="http://chkIndex.jsp?tableOwner=AR&amp;tableName=HZ_PARTIES">HZ_PARTIES</a></p>
</td>
<td width="40">
<p>125</p>
</td>
<td width="40">
<p>22643</p>
</td>
<td width="10">&#160;</td>
<td width="10">&#160;</td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/developerinsight.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/developerinsight.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/developerinsight.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/developerinsight.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/developerinsight.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/developerinsight.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/developerinsight.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/developerinsight.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/developerinsight.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/developerinsight.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/developerinsight.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/developerinsight.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/developerinsight.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/developerinsight.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developerinsight.wordpress.com&amp;blog=2191084&amp;post=43&amp;subd=developerinsight&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://developerinsight.wordpress.com/2008/11/19/three-main-things-that-you-should-consider-when-improving-the-performance-of-a-sql-query-in-oracle-or-mysql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e4e2bb15ba9c1986c8f48cb68be049b9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rama</media:title>
		</media:content>

		<media:content url="http://developerinsight.files.wordpress.com/2008/11/clip-image001-thumb.gif" medium="image">
			<media:title type="html">clip_image001</media:title>
		</media:content>

		<media:content url="http://developerinsight.files.wordpress.com/2008/11/clip-image0011-thumb.gif" medium="image">
			<media:title type="html">clip_image001[1]</media:title>
		</media:content>

		<media:content url="http://developerinsight.files.wordpress.com/2008/11/clip-image0012-thumb.gif" medium="image">
			<media:title type="html">clip_image001[2]</media:title>
		</media:content>

		<media:content url="http://developerinsight.files.wordpress.com/2008/11/clip-image0013-thumb.gif" medium="image">
			<media:title type="html">clip_image001[3]</media:title>
		</media:content>

		<media:content url="http://developerinsight.files.wordpress.com/2008/11/clip-image0014-thumb.gif" medium="image">
			<media:title type="html">clip_image001[4]</media:title>
		</media:content>

		<media:content url="http://developerinsight.files.wordpress.com/2008/11/clip-image0015-thumb.gif" medium="image">
			<media:title type="html">clip_image001[5]</media:title>
		</media:content>

		<media:content url="http://developerinsight.files.wordpress.com/2008/11/clip-image0016-thumb.gif" medium="image">
			<media:title type="html">clip_image001[6]</media:title>
		</media:content>

		<media:content url="http://developerinsight.files.wordpress.com/2008/11/clip-image0017-thumb.gif" medium="image">
			<media:title type="html">clip_image001[7]</media:title>
		</media:content>

		<media:content url="http://developerinsight.files.wordpress.com/2008/11/clip-image0018-thumb.gif" medium="image">
			<media:title type="html">clip_image001[8]</media:title>
		</media:content>
	</item>
		<item>
		<title>Handling UTF-8 characters in Java</title>
		<link>http://developerinsight.wordpress.com/2008/11/19/handling-utf-8-characters-in-java/</link>
		<comments>http://developerinsight.wordpress.com/2008/11/19/handling-utf-8-characters-in-java/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 11:11:00 +0000</pubDate>
		<dc:creator>Rama</dc:creator>
				<category><![CDATA[Core Java]]></category>
		<category><![CDATA[localization]]></category>

		<guid isPermaLink="false">http://developerinsight.wordpress.com/2008/11/19/handling-utf-8-characters-in-java/</guid>
		<description><![CDATA[Are you facing the below problem in java? Sample string in another language : 认清世界 读懂中国: 老百姓将杨佳案矛头指向沪政法书记吴志明 Are you getting all question marks&#160; (?????????) instead of language specific characters (认清世界 读懂中国: 老百姓) when you are trying to read language specific strings in java program and display it ? Then below are steps that you should [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developerinsight.wordpress.com&amp;blog=2191084&amp;post=22&amp;subd=developerinsight&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Are you facing the below problem in java?</strong></p>
<p>Sample string in another language</p>
<p> : 认清世界 读懂中国: 老百姓将杨佳案矛头指向沪政法书记吴志明</p>
<p>Are you getting all question marks&#160; (?????????) instead of language specific characters (认清世界 读懂中国: 老百姓) when you are trying to read language specific strings in java program and display it ?</p>
<p>Then below are steps that you should follow to avoid such problems.</p>
<p>Problem :   <br />The characters which are in the string are UTF-8 encoded characters , where as by default the tomcat server assume that all the characters are encoded in ISO-8859-1    <br />as the result Tomcat is trying to read the characters in the string (which are UTF-8 encoded) in ISO-8859-1 encoded format because of which it could not able to print the international character&#8217;s.</p>
<p>How to resolve?    <br />~~~~~~~~~~~~~~~    <br />we need to say to the java servlet that those characters are UTF-8 and are not the default ISO encoded</p>
<p>How to say?    <br />~~~~~~~~~~    <br />Please observe the below bold line the second argument of InputStreamReader constructor &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..it is UTF-8    <br />which says to the servlet that characters retrieved from the URL/file&#160; are UTF-8 Encoded and are not encoded in the default ISO format</p>
<p><font size="1">(please not here iam reading the contents from an URL if you are reading from file instead of httpconnection you need to specify file path or File Object)</font></p>
<p><strong>InputStreamReader defaultReader = new InputStreamReader(httpConnection.getInputStream(),&quot;UTF-8&quot;);</strong></p>
<p> <strong>
<p></p>
<p> That&#8217;s it. in adddition to that you need to take care of the below things.</strong>
<p>1) mysql connection should be as below    <br />jdbc:mysql://localhost/databasename?useEncoding=true&amp;characterEncoding=UTF-8    <br />instead of    <br />jdbc:mysql://localhost/databasename</p>
<p>2) in mysql database , each table , each text/varchar column should be of UTF-8-general-ci    <br />3) if you are using log4j and want ot see the UTF-8 characters in the log messages you should add the below param to each appender    <br />&lt;param name=&quot;Encoding&quot; value=&quot;UTF-8&quot;/&gt; (i don&#8217;t know even after setting this i couldnot able to see the characters properly in log file/console)    <br />4 ) important links which talks about this problem and solution:    <br /><a href="http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/">http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/</a> (excellent article which clearly helps us to understand what the problem is and how to resolve)    <br /><a href="http://blogs.warwick.ac.uk/kieranshaw/entry/utf-8_internationalisation_with">http://blogs.warwick.ac.uk/kieranshaw/entry/utf-8_internationalisation_with</a>    <br /><a href="http://stackoverflow.com/questions/138948/how-to-get-utf-8-working-in-java-webapps">http://stackoverflow.com/questions/138948/how-to-get-utf-8-working-in-java-webapps</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/developerinsight.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/developerinsight.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/developerinsight.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/developerinsight.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/developerinsight.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/developerinsight.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/developerinsight.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/developerinsight.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/developerinsight.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/developerinsight.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/developerinsight.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/developerinsight.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/developerinsight.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/developerinsight.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developerinsight.wordpress.com&amp;blog=2191084&amp;post=22&amp;subd=developerinsight&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://developerinsight.wordpress.com/2008/11/19/handling-utf-8-characters-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e4e2bb15ba9c1986c8f48cb68be049b9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rama</media:title>
		</media:content>
	</item>
		<item>
		<title>How to detect whether a character is chinese or not in Java ?</title>
		<link>http://developerinsight.wordpress.com/2008/11/19/how-to-detect-whether-a-character-is-chinese-or-not-in-java/</link>
		<comments>http://developerinsight.wordpress.com/2008/11/19/how-to-detect-whether-a-character-is-chinese-or-not-in-java/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 10:25:00 +0000</pubDate>
		<dc:creator>Rama</dc:creator>
				<category><![CDATA[Core Java]]></category>
		<category><![CDATA[localization]]></category>

		<guid isPermaLink="false">http://developerinsight.wordpress.com/2008/11/19/how-to-detect-whether-a-character-is-chinese-or-not-in-java/</guid>
		<description><![CDATA[To detect the chinese characters i have used the following condition (and it is detecting most of the chinese characters)&#8230;&#8230;&#8230;. &#8212;&#8212;&#8212;&#8212;&#8212;&#8211; if( (Character.UnicodeBlock.of(str[i]) == Character.UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS) &#124;&#124; ) &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- May be chinese,japnese characters fall into this UNICODE block Character.UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS (not very sure) Similarly To identify any language characters (say arabic, hindi etc……….) we need to know [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developerinsight.wordpress.com&amp;blog=2191084&amp;post=20&amp;subd=developerinsight&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To detect the chinese characters i have used the following condition (and it is detecting most of the chinese characters)&#8230;&#8230;&#8230;.   <br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;    <br /><strong>if( (Character.UnicodeBlock.of(str[i]) == Character.UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS) || )     <br /></strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-    <br />May be chinese,japnese characters fall into this UNICODE block    <br /><b>Character.UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS</b> (not very sure)</p>
<p>Similarly</p>
<p><strong>To identify any language characters (say arabic, hindi etc……….)</strong></p>
<p>we need to know the unicode block name for that language and need to apply the similar condition as shown above.</p>
<p>See the below link for more details   <br /><a href="http://forums.sun.com/thread.jspa?forumID=31&amp;threadID=5341202">http://forums.sun.com/thread.jspa?forumID=31&amp;threadID=5341202</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/developerinsight.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/developerinsight.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/developerinsight.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/developerinsight.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/developerinsight.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/developerinsight.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/developerinsight.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/developerinsight.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/developerinsight.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/developerinsight.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/developerinsight.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/developerinsight.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/developerinsight.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/developerinsight.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developerinsight.wordpress.com&amp;blog=2191084&amp;post=20&amp;subd=developerinsight&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://developerinsight.wordpress.com/2008/11/19/how-to-detect-whether-a-character-is-chinese-or-not-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e4e2bb15ba9c1986c8f48cb68be049b9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rama</media:title>
		</media:content>
	</item>
		<item>
		<title>How to add expiry date to JavaScript files , images , style sheets in Tomcat Java (Yslow)</title>
		<link>http://developerinsight.wordpress.com/2008/11/19/how-to-add-expiry-date-to-javascript-files-images-style-sheets-in-tomcat-java-yslow/</link>
		<comments>http://developerinsight.wordpress.com/2008/11/19/how-to-add-expiry-date-to-javascript-files-images-style-sheets-in-tomcat-java-yslow/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 09:19:00 +0000</pubDate>
		<dc:creator>Rama</dc:creator>
				<category><![CDATA[performance]]></category>
		<category><![CDATA[yslow]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://developerinsight.wordpress.com/2008/11/19/how-to-add-expiry-date-to-javascript-files-images-style-sheets-in-tomcatjava-yslow/</guid>
		<description><![CDATA[I hope you already know what yslow principles are and&#160; Why we need to use them.Please see the below to understand the benefit of adding the adding expiry date to static (js,images,style sheets) files http://developer.yahoo.net/blog/archives/2007/05/high_performanc_2.html if you are using TOmcat the below is the way to add expiry date to the&#160; js,images and css files [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developerinsight.wordpress.com&amp;blog=2191084&amp;post=14&amp;subd=developerinsight&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I hope you already know what <a href="http://developer.yahoo.com/yslow/" target="_blank">yslow</a> principles are and&#160; Why we need to use them.Please see the below to understand the benefit of adding the adding expiry date to static (js,images,style sheets) files</p>
<p><a title="http://developer.yahoo.net/blog/archives/2007/05/high_performanc_2.html" href="http://developer.yahoo.net/blog/archives/2007/05/high_performanc_2.html">http://developer.yahoo.net/blog/archives/2007/05/high_performanc_2.html</a></p>
<p><a href="http://developerinsight.files.wordpress.com/2008/11/image.png"><img title="image" style="display:inline;border-width:0;" height="92" alt="image" src="http://developerinsight.files.wordpress.com/2008/11/image-thumb.png?w=130&#038;h=92" width="130" border="0" /></a> </p>
<p>if you are using TOmcat the below is the way to add expiry date to the&#160; js,images and css files that i figured out.    <br />1)you need to create a filter for the above files to add an expiry date.     <br />At the below link you will get code illustration of how we should do it     <br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;     <br /><a href="http://www.jguru.com/faq/view.jsp?EID=1311010">http://www.jguru.com/faq/view.jsp?EID=1311010</a></p>
<p>2) How to make sure that the expiry date is added properly to those files?     <br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>I did a lot of investigation on the above problem. you can use the following tools </p>
<p>1) Yslow itself to check which components has expiry header and which components do not have.But it is some what buggy is not correctly reporting the expiry date of components.</p>
<p>2) <a href="http://www.webpagetest.org">http://www.webpagetest.org</a>     <br />AOL&#8217;s Page test tools you can download the desktop version and for accurate picture you can check the optimization report to know which components have expiry header which components do not have.This tool also some gives different problems.</p>
<p>&#160;</p>
<p>3) The best way that i figured out is    <br />The number of http requests that will go to the server is equal to the number of components (js,img,css) present in the webpage.What you need to do is…….     <br />Step1) write some debug messages( i.e printing requested url and filename) in the filter that you have written for adding expiry date.</p>
<p>Step2)clear cache and download the page from the browser now check whether filter has modified any response by looking at the debug messages.     <br />The number of debug messages = number of components requested.By debug messages you can know to which component we have added expiry header.</p>
<p>Step3) Load the page again (please don&#8217;t refresh as per my understanding refresh will invalidates all components of the browser cache and brings fresh components from the server) by copying the url and pasting in another browser window.    <br />Now at server you can observe that no debug messages has been printed from the filter which means that those component have not been requested from browser because they are present in the browser cache which means our expiry date is working properly.</p>
<p>i hope you understood the above.</p>
<p>please let me know in comments if you need any clarifications.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/developerinsight.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/developerinsight.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/developerinsight.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/developerinsight.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/developerinsight.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/developerinsight.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/developerinsight.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/developerinsight.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/developerinsight.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/developerinsight.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/developerinsight.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/developerinsight.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/developerinsight.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/developerinsight.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developerinsight.wordpress.com&amp;blog=2191084&amp;post=14&amp;subd=developerinsight&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://developerinsight.wordpress.com/2008/11/19/how-to-add-expiry-date-to-javascript-files-images-style-sheets-in-tomcat-java-yslow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e4e2bb15ba9c1986c8f48cb68be049b9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rama</media:title>
		</media:content>

		<media:content url="http://developerinsight.files.wordpress.com/2008/11/image-thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Launch of httpfuse.com</title>
		<link>http://developerinsight.wordpress.com/2008/08/04/launch-of-httpfusecom/</link>
		<comments>http://developerinsight.wordpress.com/2008/08/04/launch-of-httpfusecom/#comments</comments>
		<pubDate>Mon, 04 Aug 2008 10:12:15 +0000</pubDate>
		<dc:creator>Rama</dc:creator>
				<category><![CDATA[mystartup]]></category>

		<guid isPermaLink="false">http://developerinsight.wordpress.com/?p=10</guid>
		<description><![CDATA[I am happy to inform you about the successful launch of httpfuse.com web application which allows communities to build bookmarks on the topic of their interest.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developerinsight.wordpress.com&amp;blog=2191084&amp;post=10&amp;subd=developerinsight&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am happy to inform you about the successful launch of <a href="http://www.httpfuse.com"> httpfuse.com</a>  web application<br />
which allows communities to build bookmarks on the topic of their interest.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/developerinsight.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/developerinsight.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/developerinsight.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/developerinsight.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/developerinsight.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/developerinsight.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/developerinsight.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/developerinsight.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/developerinsight.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/developerinsight.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/developerinsight.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/developerinsight.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/developerinsight.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/developerinsight.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/developerinsight.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/developerinsight.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developerinsight.wordpress.com&amp;blog=2191084&amp;post=10&amp;subd=developerinsight&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://developerinsight.wordpress.com/2008/08/04/launch-of-httpfusecom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e4e2bb15ba9c1986c8f48cb68be049b9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rama</media:title>
		</media:content>
	</item>
		<item>
		<title>Unexpected problems with the HTTPSession (Java)while developing an web application then you must watch carefully the below subtle issues</title>
		<link>http://developerinsight.wordpress.com/2007/12/12/unexpected-problems-with-the-httpsession-javawhile-developing-an-web-application-then-you-must-watch-carefully-the-below-subtle-issues/</link>
		<comments>http://developerinsight.wordpress.com/2007/12/12/unexpected-problems-with-the-httpsession-javawhile-developing-an-web-application-then-you-must-watch-carefully-the-below-subtle-issues/#comments</comments>
		<pubDate>Wed, 12 Dec 2007 14:08:41 +0000</pubDate>
		<dc:creator>Rama</dc:creator>
				<category><![CDATA[HttpSession]]></category>

		<guid isPermaLink="false">http://developerinsight.wordpress.com/2007/12/12/unexpected-problems-with-the-httpsession-javawhile-developing-an-web-application-then-you-must-watch-carefully-the-below-subtle-issues/</guid>
		<description><![CDATA[&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; pattern 1)&#160; Following sequence may cause unexpected problems step1) ClientA opened a session with the Server .Assume that session id = &#8220;23&#8243; step2)Now you restarted the server the previous session with the id 23 is deleted on the server step3)The same client made a request , as the cookie information is still with client [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developerinsight.wordpress.com&amp;blog=2191084&amp;post=9&amp;subd=developerinsight&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>pattern 1)&nbsp; Following sequence may cause unexpected problems</p>
<p> step1) ClientA opened a session with the Server .Assume that session id = &#8220;23&#8243;</p>
<p>step2)Now you restarted the server the previous session with the id 23 is deleted on the server</p>
<p>step3)The same client made a request , as the cookie information is still with client client carries a old session id23.</p>
<p>step4)The server examines this 23 finds that it is deleted and creates a new session with the same session id 23 in this process&nbsp; all the previous attributes which are there in the session will not present now.</p>
<p>step5)Very Important: During the 4 step the server will not call&nbsp; the session listener some how and session attributes are all null.Due to this state some problems may arise.</p>
<p>pattern 2) </p>
<p>step1)Once after this&nbsp; step 2)&nbsp; Suppose&nbsp; suppose you opened another browser (there is small issue with browser too ) window&nbsp; (Client B) and opened the same web application&nbsp; </p>
<p>Step2) WEb application creates a new session with id = 32</p>
<p>Step3) In Mozilla (look below what happens in IE)Now if the old client A makes any request it will be stamped with 32 rather that 23.</p>
<p>Very important thing you should note is </p>
<p>1) In Mozilla if old client A sends a request it is stamped withs session id&nbsp; 32.</p>
<p>2) IN Internet Explorer if old client A sends a request it is stamped with 27.</p>
<p>Although the possibility of such issues in the production is very rare because server will not be restarted as usually as we do while developing an web application.But while you are in the process of developing an application the above pattern may occur will cause some unexpected problems.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/developerinsight.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/developerinsight.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/developerinsight.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/developerinsight.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/developerinsight.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/developerinsight.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/developerinsight.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/developerinsight.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/developerinsight.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/developerinsight.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/developerinsight.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/developerinsight.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/developerinsight.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/developerinsight.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/developerinsight.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/developerinsight.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developerinsight.wordpress.com&amp;blog=2191084&amp;post=9&amp;subd=developerinsight&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://developerinsight.wordpress.com/2007/12/12/unexpected-problems-with-the-httpsession-javawhile-developing-an-web-application-then-you-must-watch-carefully-the-below-subtle-issues/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e4e2bb15ba9c1986c8f48cb68be049b9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rama</media:title>
		</media:content>
	</item>
		<item>
		<title>Mysteries of DRUID The DataBase Manager</title>
		<link>http://developerinsight.wordpress.com/2007/12/09/mysteries-of-druid-the-database-manager/</link>
		<comments>http://developerinsight.wordpress.com/2007/12/09/mysteries-of-druid-the-database-manager/#comments</comments>
		<pubDate>Sat, 08 Dec 2007 22:08:44 +0000</pubDate>
		<dc:creator>Rama</dc:creator>
				<category><![CDATA[DRUID]]></category>

		<guid isPermaLink="false">http://developerinsight.wordpress.com/2007/12/09/mysteries-of-druid-the-database-manager/</guid>
		<description><![CDATA[&#160; if you have not heard of DRUID.Then here is the introduction.Druid is a Database Manager means it is a front end tool from which we can control /develop various things related to various databases.Some of the advantages are 1) Automation of creating tables for your schema with a single click in any database (oracle,mysql,DB2 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developerinsight.wordpress.com&amp;blog=2191084&amp;post=8&amp;subd=developerinsight&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>if you have not heard of DRUID.Then here is the introduction.Druid is a Database Manager means it is a front end tool from which we can control /develop various things related to various databases.Some of the advantages are </p>
<p>1) Automation of creating tables for your schema with a single click in any database (oracle,mysql,DB2 and others)</p>
<p>2) Maintaining the database also becomes easier.</p>
<p>2) There many&nbsp; many many advantages Please see this page <a href="http://druid.sourceforge.net/">http://druid.sourceforge.net/</a></p>
<p>To learn more see the following page <a href="http://druid.sourceforge.net/">http://druid.sourceforge.net/</a>&nbsp;&nbsp; For tutorials and reference documentation just download the druid zip and extract it, inside the docs folder you will find various documentation and tutorials to proceed further.</p>
<p>SOme of the key things you should note while working with DRUID:</p>
<p>1)For mysql 5.0. Field attribute Unsigned should be next to primary key Field attribute .If not it will give some error.</p>
<p>2)If a primary key of a table is unsigned BIG INT then the foreign keys which references this primary key also should by unsigned BIG INT. Even if it is BIG INT it will give some error.</p>
<p>Please note the above point when working with MYSQL database.</p>
<p>Note:Good tutorials are inside the&nbsp; Druid downloaded Zip so if you want to read good tutorials just download the DRUID from <a href="http://druid.sourceforge.net/">http://druid.sourceforge.net/</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/developerinsight.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/developerinsight.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/developerinsight.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/developerinsight.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/developerinsight.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/developerinsight.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/developerinsight.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/developerinsight.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/developerinsight.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/developerinsight.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/developerinsight.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/developerinsight.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/developerinsight.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/developerinsight.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/developerinsight.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/developerinsight.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developerinsight.wordpress.com&amp;blog=2191084&amp;post=8&amp;subd=developerinsight&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://developerinsight.wordpress.com/2007/12/09/mysteries-of-druid-the-database-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e4e2bb15ba9c1986c8f48cb68be049b9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rama</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting DWR work with Spring</title>
		<link>http://developerinsight.wordpress.com/2007/12/01/getting-dwr-work-with-spring/</link>
		<comments>http://developerinsight.wordpress.com/2007/12/01/getting-dwr-work-with-spring/#comments</comments>
		<pubDate>Sat, 01 Dec 2007 13:35:52 +0000</pubDate>
		<dc:creator>kirankumarp</dc:creator>
				<category><![CDATA[DWR]]></category>

		<guid isPermaLink="false">http://developerinsight.wordpress.com/2007/12/01/getting-dwr-work-with-spring/</guid>
		<description><![CDATA[DWR (Direct Web Remoting) allows us to make RPC style calls to the Java objects on the server using JavaScript. It integrates well with many popular server side technologies like Spring and Hibernate. Here I explaing simple steps to use DWR for exposing Spring beans as JavaScript classes. Download the DWR library and copy it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developerinsight.wordpress.com&amp;blog=2191084&amp;post=7&amp;subd=developerinsight&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font face="Tahoma" size="2">DWR (Direct Web Remoting) allows us to make RPC style calls to the Java objects on the server using JavaScript. It integrates well with many popular server side technologies like Spring and Hibernate. Here I explaing simple steps to use DWR for exposing Spring beans as JavaScript classes.</font></p>
<p><font face="Tahoma" size="2">Download the DWR library and copy it to the &#8216;lib&#8217; directory of the project.</font></p>
<p><font face="Tahoma" size="2">Open the web.xml of the project and add the following lines to it.</font></p>
<p><font face="Courier New" size="2">&lt;servlet&gt;<br />&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;dwr-invoker&lt;/servlet-name&gt;<br />&nbsp;&nbsp;&nbsp; &lt;servlet-class&gt; </font><font face="Courier New" size="2">org.directwebremoting.servlet.DwrServlet&lt;/servlet-class&gt;<br />&nbsp;&nbsp;&nbsp; &lt;init-param&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-name&gt;debug&lt;/param-name&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-value&gt;true&lt;/param-value&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/init-param&gt;<br />&lt;/servlet&gt;<br />&lt;servlet-mapping&gt;<br />&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;dwr-invoker&lt;/servlet-name&gt;<br />&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/dwr/*&lt;/url-pattern&gt;<br />&lt;/servlet-mapping&gt;</font></p>
<p><font face="Tahoma" size="2"><u>What did we do?</u> We declared a servlet and mapped it to the URL pattern /dwr/*. The servlet we declared, <font face="Courier New" size="2">org.directwebremoting.servlet.DwrServlet</font>, is the one which handles all the DWR requests. The init parameter &#8216;debug&#8217; sets the debugging mode. Turn on debugging mode to check if the classes declared are getting exposed properly. But do not forget to turn it off when moving the project to production.</font></p>
<p><font face="Tahoma" size="2">Now if the URL &#8216;http://localhost/DWRSpring/dwr&#8217;, assuming DWRSpring is the project name, is opened, it should a page showing &#8216;Classes known to DWR:&#8217;. However, the list will be empty as we haven&#8217;t exposed any classes yet.</font></p>
<p><font face="Tahoma" size="2">Suppose that you wanna expose a bean, named &#8216;loginValidator&#8217;, using DWR. Create a file named &#8216;dwr.xml&#8217; under WEB-INF folder of the project and add the following code to it.</font></p>
<p><font face="Courier New" size="2">&lt;!DOCTYPE dwr PUBLIC<br />&nbsp;&nbsp;&nbsp; &#8220;-//GetAhead Limited//DTD Direct Web Remoting 1.0//EN&#8221;<br />&nbsp;&nbsp;&nbsp; &#8220;</font><a href="http://www.getahead.ltd.uk/dwr/dwr10.dtd&quot;"><font face="Courier New" size="2">http://www.getahead.ltd.uk/dwr/dwr10.dtd&#8221;</font></a><font face="Courier New" size="2">&gt; </font>
<p><font face="Courier New" size="2">&lt;dwr&gt;<br />&nbsp; &lt;allow&gt;<br />&nbsp;&nbsp;&nbsp; &lt;create creator=&#8221;spring&#8221; javascript=&#8221;UserValidator&#8221; scope=&#8221;session&#8221;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&#8221;beanName&#8221; value=&#8221;loginvalidator&#8221;/&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/create&gt;<br />&nbsp; &lt;/allow&gt;<br />&lt;/dwr&gt;</font></p>
<p><font face="Tahoma" size="2"><u>What did we do?</u> We exposed the bean &#8216;loginValidator&#8217; as Javascript class &#8216;UserValidator&#8217;. The value &#8216;spring&#8217; for the attribute &#8216;creator&#8217; of the &#8216;create&#8217; tag specifies that Spring framework should be used to instantiate this bean and the init parameter &#8216;beanName&#8217; specifies the which bean to be instantiated. DWR provides many other creators. Most common one is &#8216;new&#8217;, which is used to instantiate the Java class using new operator. </font><font face="Tahoma" size="2">The javascript attribute of the &#8216;create&#8217; tag specifies the JavaScript class name to be created.</font></p>
<p><font face="Tahoma" size="2">Note that the bean to be exposed should be available in the application context.</font></p>
<p><font face="Tahoma" size="2">To check if the bean has got exposed properly, open the URL &#8216;http://localhost/DWRSpring/dwr&#8217;. It should list the bean exposed. This page also allows to call the methods exposed.</font></p>
<p><font face="Tahoma" size="2">To use the JavaScript class exposed by DWR, include the following lines in the HTML page.</font></p>
<p><font face="Courier New" size="2">&lt;script src=&#8217;/DWRSping/dwr/interface/UserValidator.js&#8217;&gt;&lt;/script&gt;<br />&lt;script src=&#8217;/DWRSpring/dwr/engine.js&#8217;&gt;&lt;/script&gt;</font>
<p><font face="Tahoma" size="2">The script &#8216;UserValidator.js&#8217; contains the definition of the class exposed by the DWR.</font></p>
<p><font face="Tahoma" size="2">To call any methods of the JavaScript class exposed, use the following code:</font></p>
<p><font face="Courier New" size="2">UserValidator.validateID( id, callbackMethod );</font></p>
<p><font face="Tahoma" size="2">Here validateID is one of the public methods of bean we exposed. &#8216;id&#8217; is the parameter it takes. DWR runtime makes a call to the Java bean exposed on the server asynchronously. It takes care of marshalling and unmarshalling the parameters. The parameter &#8216;callbackMethod&#8217; is the method to be called when the asynchronous request is complete.</font></p>
<p><font face="Courier New" size="2">function callbackMethod( data ) {<br />&nbsp;&nbsp;&nbsp; window.alert( data );<br />}</font>
<p><font face="Tahoma" size="2">The parameter &#8216;data&#8217; contains the return value of the method we called.</font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/developerinsight.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/developerinsight.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/developerinsight.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/developerinsight.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/developerinsight.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/developerinsight.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/developerinsight.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/developerinsight.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/developerinsight.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/developerinsight.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/developerinsight.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/developerinsight.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/developerinsight.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/developerinsight.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/developerinsight.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/developerinsight.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developerinsight.wordpress.com&amp;blog=2191084&amp;post=7&amp;subd=developerinsight&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://developerinsight.wordpress.com/2007/12/01/getting-dwr-work-with-spring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ea6fbf36bd8748e285d8933c1e90128?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kirankumarp</media:title>
		</media:content>
	</item>
		<item>
		<title>Controlling the various names generated by Hibernate Tools</title>
		<link>http://developerinsight.wordpress.com/2007/12/01/controlling-the-various-names-generated-by-hibernate-tools/</link>
		<comments>http://developerinsight.wordpress.com/2007/12/01/controlling-the-various-names-generated-by-hibernate-tools/#comments</comments>
		<pubDate>Fri, 30 Nov 2007 23:12:41 +0000</pubDate>
		<dc:creator>Rama</dc:creator>
				<category><![CDATA[Hibernate]]></category>

		<guid isPermaLink="false">http://developerinsight.wordpress.com/2007/12/01/controlling-the-various-names-generated-by-hibernate-tools/</guid>
		<description><![CDATA[&#160; Hibernate Tools : &#160; We use Hibernate Tools to&#160; automatically generate&#160; POJO (plain old java objects) and&#160; sqlmaps&#160; for the Objects/Tables&#160; from the database.(there are variety of other things also that&#160; these tools will do make sure that these tools will not do that particular task when you are about to hard code) During [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developerinsight.wordpress.com&amp;blog=2191084&amp;post=6&amp;subd=developerinsight&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>Hibernate Tools :</p>
<p>&nbsp; We use Hibernate Tools to&nbsp; automatically generate&nbsp; POJO (plain old java objects) and&nbsp; sqlmaps&nbsp; for the Objects/Tables&nbsp; from the database.(there are variety of other things also that&nbsp; these tools will do make sure that these tools will not do that particular task when you are about to hard code)</p>
<p>During this&nbsp; reverse engineering process we can control the various names (i.e) names of the classes,names of the properties ,names of the collections&nbsp; using an xml file,Which we give&nbsp; during the code generation in the reverse.xml text box.</p>
<p>Sample XML file:</p>
<p>&lt;hibernate-reverse-engineering&gt;</p>
<p>&lt;table&nbsp; catalog=&#8221;catalogname&#8221;&nbsp; name=&#8221;tablename&#8221;&nbsp;&nbsp; class=&#8221;packagename&#8221;&gt;<br />&nbsp; &lt;foreign-key&nbsp; constraint-name=&#8221;constrain_name&#8221;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreign-catalog=&#8221;catalogname&#8221;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreign-schema=&#8221;schemaname&#8221; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreign-table=&#8221;tablewhichthe above constraint is pointing to&#8221;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;many-to-one property=&#8221;yourpreferredname&#8221;/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;set&nbsp; property=&#8221;yourpreferredname&#8221;/&gt; <br />&lt;/foreign-key&gt;
<p>&lt;/table&gt;
<p>&lt;/hibernate-reverse-engineering&gt;
<p>&nbsp;
<p>As every table maps to a class we specify all the configuration details in the &lt;table&gt; element.
<p>For every foreign key of a table (assume we are following bidirectional association mappings) which participates in the one-to-many relationship on one end we have a SET collection and on another end we just have POJO (plain old java object) we control the SET Collection name and POJO name.
<p>The example XML files illustrates the above said theory
<p>&nbsp;&nbsp; 1) write down your foreign key constraint and other details as shown above.Please note that without the foreign-schema some errors may come.&nbsp;
<p>&nbsp; 2) &lt;set propertyname=&#8221; |&nbsp; here you mention the name you want your collection should take.
<p>3)&nbsp;&nbsp; &lt;many-to-one =&#8221; | here you mention the name you want your POJO to take.
<p>Thats it.
<p>There are other levels of configuration too you can able to do such as
<p>1) we can mention class name for the table.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<p>2)we can Mention the property name and types that corresponds to the table column .
<p>3) we can mention primary key details too.
<p>Please note this is not written by Expert in Hibernate.We too are in the learning phase.They may be mistakes in the article .  </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/developerinsight.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/developerinsight.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/developerinsight.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/developerinsight.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/developerinsight.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/developerinsight.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/developerinsight.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/developerinsight.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/developerinsight.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/developerinsight.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/developerinsight.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/developerinsight.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/developerinsight.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/developerinsight.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/developerinsight.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/developerinsight.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developerinsight.wordpress.com&amp;blog=2191084&amp;post=6&amp;subd=developerinsight&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://developerinsight.wordpress.com/2007/12/01/controlling-the-various-names-generated-by-hibernate-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e4e2bb15ba9c1986c8f48cb68be049b9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rama</media:title>
		</media:content>
	</item>
		<item>
		<title>java.util.Date vs java.sql.Date (its brothers java.sql.Time,java.sql.TimeStamp)</title>
		<link>http://developerinsight.wordpress.com/2007/11/25/javautildate-vs-javasqldate-its-brothers-javasqltimejavasqltimestamp/</link>
		<comments>http://developerinsight.wordpress.com/2007/11/25/javautildate-vs-javasqldate-its-brothers-javasqltimejavasqltimestamp/#comments</comments>
		<pubDate>Sun, 25 Nov 2007 04:28:35 +0000</pubDate>
		<dc:creator>Rama</dc:creator>
				<category><![CDATA[Core Java]]></category>

		<guid isPermaLink="false">http://developerinsight.wordpress.com/2007/11/25/javautildate-vs-javasqldate-its-brothers-javasqltimejavasqltimestamp/</guid>
		<description><![CDATA[java.util.Date &#8212;&#8212;&#8212;&#8212;&#8212; When we say Date d1 = new Date() It stores current GMT time.Whenever we display the time it will be display in the TimeZone where the program is working.While displaying it also takes into consideration the Locale Object and display approriately. java.sql.Date &#8212;&#8212;&#8212;&#8212;- sql.Date is the convinient class to wrap the above java.util.Date [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developerinsight.wordpress.com&amp;blog=2191084&amp;post=5&amp;subd=developerinsight&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>java.util.Date<br />
&#8212;&#8212;&#8212;&#8212;&#8212;<br />
When we say   Date d1 = new Date() It stores current GMT time.Whenever we display the time it will be display in the TimeZone where the program is working.While displaying it also takes into consideration the Locale Object and display approriately.</p>
<p>java.sql.Date<br />
&#8212;&#8212;&#8212;&#8212;-<br />
sql.Date is the convinient class to wrap the above java.util.Date into a format that is familiar to Databases.(i.e into the format yyyy-mm&#8211;dd) .Note that java.sql.Date will not store the timecomponent.</p>
<p>java.sql.Timestamp will store the Time Component along with the nanoseconds.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/developerinsight.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/developerinsight.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/developerinsight.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/developerinsight.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/developerinsight.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/developerinsight.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/developerinsight.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/developerinsight.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/developerinsight.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/developerinsight.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/developerinsight.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/developerinsight.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/developerinsight.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/developerinsight.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/developerinsight.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/developerinsight.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developerinsight.wordpress.com&amp;blog=2191084&amp;post=5&amp;subd=developerinsight&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://developerinsight.wordpress.com/2007/11/25/javautildate-vs-javasqldate-its-brothers-javasqltimejavasqltimestamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e4e2bb15ba9c1986c8f48cb68be049b9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rama</media:title>
		</media:content>
	</item>
	</channel>
</rss>
