<?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>Nirvikalpa</title>
	<atom:link href="http://nirvikalpa.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nirvikalpa.wordpress.com</link>
	<description>Exploring here and now</description>
	<lastBuildDate>Sat, 15 Oct 2011 00:12:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='nirvikalpa.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Nirvikalpa</title>
		<link>http://nirvikalpa.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://nirvikalpa.wordpress.com/osd.xml" title="Nirvikalpa" />
	<atom:link rel='hub' href='http://nirvikalpa.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Java _ Revision</title>
		<link>http://nirvikalpa.wordpress.com/2011/10/11/java-_-revision/</link>
		<comments>http://nirvikalpa.wordpress.com/2011/10/11/java-_-revision/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 05:19:59 +0000</pubDate>
		<dc:creator>techzen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://nirvikalpa.wordpress.com/?p=405</guid>
		<description><![CDATA[Varargs argument &#8211; if no implicit array creation takes place then it is called as non-varargs call. but if array is cast to object then varargs call takes place. Enum cannot be made final or static. overloaded methods, which method implementation will be executed at runtime is determined at compile time , but for overridden [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nirvikalpa.wordpress.com&amp;blog=6920866&amp;post=405&amp;subd=nirvikalpa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Varargs argument &#8211; if no implicit array creation takes place then it is called as non-varargs call. but if array is cast to object then varargs call takes place. Enum cannot be made final or static.</p>
<p>overloaded methods, which method implementation will be executed at runtime is determined at compile time , but for overridden methods, the method implementation to be executed is determined at runtime.As the return type is not a part of the method signature, just having different return types is not enough to overload methods.</p>
<p>All arrays of reference types are also subtypes of the array type Object[], but arrays of primitive data types are not. Note that the array type Object[] is also a subtype of the Object type<br />
covariant return types means subclass overrides method and return is subclass of the super class&#8217;s return.</p>
<p>Child class cannot reduce visibility of overriden methods , cannot increase count of checked exception, can only have covariant return type for methods.</p>
<p>Static methods if hidden are called based on the  class of the reference. </p>
<p>Top t = new Bottom();<br />
t.staticMethod &#8211; Top&#8217;s static method called. !.<br />
If super class has non default constructor subclass must define the constructor on it&#8217;s own. Secondly, super has to be the first statement in the constructor.</p>
<p>conversion of int[] array to<br />
Object array &#8211; since int[] is not subtype of Object[] &#8211; it is enapsulated as an object and passed. But String[] etc are subtypes of Object[]. []&#8230; is treated like a 2d array<br />
All arrays of reference types are also subtypes of the array type Object[], but arrays of primitive data types are not. Note that the array type Object[] is also a subtype of the Object type</p>
<p>If a non-generic reference type is a subtype of another non-generic reference type, the corresponding array types also have an analogous subtype-supertype relationship. This is called the subtype covariance relationship. This relationship however does not hold for parameterized types .There is no subtype-supertype relationship between a type and its corresponding array type.</p>
<p>Method call for overloading rules &#8211; calls most specific method. Rules are:<br />
1. It first performs overload resolution without permitting boxing, unboxing, or the use of a varargs call.<br />
2. If phase (1) fails, it performs overload resolution allowing boxing and unboxing, but excluding the use of a varargs call.<br />
3. If phase (2) fails, it performs overload resolution combining a varargs call,boxing, and unboxing.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;NESTED&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Static member class can define both static and instance members, like<br />
any other top-level class. However, its code can only directly access static members in its enclosing context.</p>
<p>&#8212;&#8212;-<br />
Instance of a non-static member class can only exist with an instance of its enclosing class. This means that an instance of a non-static member class must be created in the context of an instance of the enclosing class. This also means that a non-static member class cannot have static members. In other words, the non-static member class does not provide any services, only instances of the class do. However, final static variables are allowed, as these are constants.<br />
• Code in a non-static member class can directly refer to any member (including nested) of any enclosing class or interface, including private members. No fully qualified reference is required.</p>
<p>To create a non static member class you need instance of the parent class:<br />
MyLinkedList.Node node2 = list.new Node(&#8220;node2&#8243;, node1); // (17)</p>
<p>Multiple objects of the non-static member classes can be associated with an object of an enclosing class at runtime !! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
list- &gt; node1, node2, node3 &#8211; nice <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>From within the non static inner class &#8211;  &#8220;this&#8221; has special meaning referring to the nested class itself. The outer this can be referred with appending of class name. [class].this.outerproperty.<br />
private fields of outer context can be accessed<br />
Eg:<br />
MyLinkedList.this.message + &#8221; in &#8221; + this.nodeInfo</p>
<p>If you wish to extend a nested non static member class from outside you need to provide in the constructor mandatory an instance of the outer class: Unique format:<br />
// (4) Mandatory non-default constructor:<br />
SubclassC(OuterA outerRef) {<br />
        outerRef.super(); // (5) Explicit super() call<br />
}</p>
<p>But if you extend outerA and innerA both &#8211; this above is not needed.<br />
new OuterB().new InnerB(); is sufficient as subclasses.</p>
<p>Nested interfaces are always static</p>
<p>the scope of the Inner class, the doIt() method of the Outer class is hidden by the doIt() method of the Inner class</p>
<p>Non-static member classes, unlike top-level classes, can have any accessibility modifier. </p>
<p>Static member classes can only be declared in top-level or nested static<br />
member classes and interfaces.</p>
<p>Local = method scoped classes.  similar to non static member classes.<br />
cannot have static members,  final static fields are allowed, as these are constants.[diff] Local classes cannot have any accessibility modifier. Only finals/statics from enclosing method are accessible.<br />
local class cannot be specified with the keyword static.</p>
<p>TLCWithLocalClasses.this.nsf1 &#8211; only for non static local class<br />
static has no concept of OUTER object &#8211; so no &#8220;this&#8221; allowed in any form.</p>
<p>A non-static local class can access both static and non-static members defined in the enclosing class.static local class can only directly access members defined in the enclosing class that are static</p>
<p>instance block &#8211; forward reference of static field/method allowed.<br />
All instances of concrete wrapper classes are immutable.<br />
All wrapper classes except Boolean and Void have a compareTo() method. Only the numeric wrapper classes have an intValue() method. </p>
<p>Certain values are cached- as in only one wrapper objects exists for certain range of primitive values once created. so should not rely on object == when comparing wrappers.</p>
<p>equal objects must produce equal hash codes.For the sake of efficiency, a hash function should strive to produce unequal hash codes for unequal objects. </p>
<p>LinkedHashSet = LIFO movement.<br />
Navigable = poll (first/last) + range operations = head/tail/sub = map/set., ceiling,floor, higher, lower , descending (map/set)</p>
<p>searching in  hashmap/hashset faster than treemap/treeset.</p>
<p>Pattern.compile, p.match, greedy, reluctant, possesive qualifiers for regex.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nirvikalpa.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nirvikalpa.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nirvikalpa.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nirvikalpa.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nirvikalpa.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nirvikalpa.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nirvikalpa.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nirvikalpa.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nirvikalpa.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nirvikalpa.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nirvikalpa.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nirvikalpa.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nirvikalpa.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nirvikalpa.wordpress.com/405/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nirvikalpa.wordpress.com&amp;blog=6920866&amp;post=405&amp;subd=nirvikalpa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nirvikalpa.wordpress.com/2011/10/11/java-_-revision/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/852f6c2fa47c80cd1925e465645da88f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techzen</media:title>
		</media:content>
	</item>
		<item>
		<title>Tiles2</title>
		<link>http://nirvikalpa.wordpress.com/2011/10/04/tiles2/</link>
		<comments>http://nirvikalpa.wordpress.com/2011/10/04/tiles2/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 04:02:21 +0000</pubDate>
		<dc:creator>techzen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[tiles2]]></category>

		<guid isPermaLink="false">http://nirvikalpa.wordpress.com/?p=401</guid>
		<description><![CDATA[After you get that working, I have a suggestion. You can use Tiles tags if you include this page directive at the tops of your JSPs: If you want, this allows you to store your CSS path as an attribute in tiles-defs.xml, and retrieve it from your JSPs with the tag: &#60;link type=&#34;text/css&#34; rel=&#34;stylesheet&#34; href=&#34;&#8221;/&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nirvikalpa.wordpress.com&amp;blog=6920866&amp;post=401&amp;subd=nirvikalpa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After you get that working, I have a suggestion. You can use Tiles tags if you include this page directive at the tops of your JSPs:</p>
<p>If you want, this allows you to store your CSS path as an attribute in tiles-defs.xml, and retrieve it from your JSPs with the tag:</p>
<p>&lt;link type=&quot;text/css&quot; rel=&quot;stylesheet&quot;<br />
    href=&quot;&#8221;/&gt;</p>
<p>========================================================</p>
<p>tiles-defs.xml</p>
<p>  &lt;![CDATA[</p>
<p>  ]]&gt;</p>
<p>Alternatively you can put the content into a separate jsp and then &#8220;tiles:insertAttribute&#8221; like any other content.</p>
<p>==============================================</p>
<p>one asterisk (*) for a single placeholder;<br />
two asterisks (**) to say &#8220;in every directory under the specified one&#8221;;</p>
<p>Choose between UrlBasedViewResolver (TilesView + TilesConfigurer) and ResourceBundleViewResolver</p>
<p>=========================</p>
<p><pre class="brush: xml;">
&lt;bean name=&quot;myController&quot; class=&quot;org.springframework.web.servlet.mvc.UrlFilenameViewController&quot;/&gt;

&lt;bean class=&quot;org.springframework.web.servlet.handler.SimpleUrlHandlerMapping&quot;&gt;
    &lt;property name=&quot;mappings&quot;&gt;
        &lt;value&gt;
            /**/*.xhtml=myController
        &lt;/value&gt;
    &lt;/property&gt;
&lt;/bean&gt;
</pre><br />
Default one is BeanNameUrlHandlerMapping which will only do what you want if you bind your controller bean under the name matching your URI</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nirvikalpa.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nirvikalpa.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nirvikalpa.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nirvikalpa.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nirvikalpa.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nirvikalpa.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nirvikalpa.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nirvikalpa.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nirvikalpa.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nirvikalpa.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nirvikalpa.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nirvikalpa.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nirvikalpa.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nirvikalpa.wordpress.com/401/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nirvikalpa.wordpress.com&amp;blog=6920866&amp;post=401&amp;subd=nirvikalpa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nirvikalpa.wordpress.com/2011/10/04/tiles2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/852f6c2fa47c80cd1925e465645da88f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techzen</media:title>
		</media:content>
	</item>
		<item>
		<title>pixel , em and % usage</title>
		<link>http://nirvikalpa.wordpress.com/2011/09/14/pixel-em-and-usage/</link>
		<comments>http://nirvikalpa.wordpress.com/2011/09/14/pixel-em-and-usage/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 17:00:30 +0000</pubDate>
		<dc:creator>techzen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://nirvikalpa.wordpress.com/?p=398</guid>
		<description><![CDATA[All of the measurements have their own purposes: Use pixels for pixel-based things, like borders. You probably don&#8217;t want a border that ends up being 1.3422 pixels wide. Use text-centric measures (em, ex) for text-based things, like content areas, labels, and input boxes. It&#8217;s an easy way to make sure you have room for text [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nirvikalpa.wordpress.com&amp;blog=6920866&amp;post=398&amp;subd=nirvikalpa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>All of the measurements have their own purposes:</p>
<p>Use pixels for pixel-based things, like borders. You probably don&#8217;t want a border that ends up being 1.3422 pixels wide.</p>
<p>Use text-centric measures (em, ex) for text-based things, like content areas, labels, and input boxes. It&#8217;s an easy way to make sure you have room for text of a certain length and width.</p>
<p>Use percents for window-based things, like columns.<br />
There are exceptions, of course. For example, you might want to specify a minimum column width in pixels. But follow the above and your pages will scale well. ALWAYS zoom in and out on your pages to see how they work with different font sizes and browser shapes &#8212; don&#8217;t get surprised later.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nirvikalpa.wordpress.com/398/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nirvikalpa.wordpress.com/398/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nirvikalpa.wordpress.com/398/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nirvikalpa.wordpress.com/398/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nirvikalpa.wordpress.com/398/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nirvikalpa.wordpress.com/398/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nirvikalpa.wordpress.com/398/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nirvikalpa.wordpress.com/398/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nirvikalpa.wordpress.com/398/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nirvikalpa.wordpress.com/398/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nirvikalpa.wordpress.com/398/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nirvikalpa.wordpress.com/398/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nirvikalpa.wordpress.com/398/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nirvikalpa.wordpress.com/398/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nirvikalpa.wordpress.com&amp;blog=6920866&amp;post=398&amp;subd=nirvikalpa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nirvikalpa.wordpress.com/2011/09/14/pixel-em-and-usage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/852f6c2fa47c80cd1925e465645da88f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techzen</media:title>
		</media:content>
	</item>
		<item>
		<title>Hibernate</title>
		<link>http://nirvikalpa.wordpress.com/2011/07/26/hibernate/</link>
		<comments>http://nirvikalpa.wordpress.com/2011/07/26/hibernate/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 20:33:56 +0000</pubDate>
		<dc:creator>techzen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nirvikalpa.wordpress.com/?p=396</guid>
		<description><![CDATA[So I first build the project using maven. Create the facede, and dao class and entity. Then created hibernate config xml file which has SessionFactory belonging to spring using DataSource BasicConnectionPooling. The properties file has to be loaded using context:placeHolder properties. Define the context annotation scanner in the spring file. Define the hibernate template using [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nirvikalpa.wordpress.com&amp;blog=6920866&amp;post=396&amp;subd=nirvikalpa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So I first build the project using maven. Create the facede, and dao class and entity. Then created hibernate config xml file which has SessionFactory belonging to spring using DataSource BasicConnectionPooling.  The properties file has to be loaded using context:placeHolder properties.</p>
<p>Define the context annotation scanner in the spring file. Define the hibernate template using the session factory using ref tag and not value tag. The JUnit test class has @Test annotated for test cases and the @RunWith (SpringRunner4JUnit.class) and @ContextConfiguration(&#8220;/abc.xml&#8221;)</p>
<p>That helps in running the test cases/ the autoDDL in hibernate if set to create recreates the schema everytime &#8211; instead to validate if you wish to keep data as it is in db.Otherwise data keeps getting removed.<br />
validate: validate the schema, makes no changes to the database.<br />
update: update the schema.<br />
create: creates the schema, destroying previous data.<br />
create-drop: drop the schema at the end of the session.</p>
<p>Logging can be increased by setting: </p>
<p>log4j.logger.org.hibernate.SQL=debug<br />
log4j.logger.org.hibernate.type=trace</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nirvikalpa.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nirvikalpa.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nirvikalpa.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nirvikalpa.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nirvikalpa.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nirvikalpa.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nirvikalpa.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nirvikalpa.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nirvikalpa.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nirvikalpa.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nirvikalpa.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nirvikalpa.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nirvikalpa.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nirvikalpa.wordpress.com/396/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nirvikalpa.wordpress.com&amp;blog=6920866&amp;post=396&amp;subd=nirvikalpa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nirvikalpa.wordpress.com/2011/07/26/hibernate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/852f6c2fa47c80cd1925e465645da88f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techzen</media:title>
		</media:content>
	</item>
		<item>
		<title>Transaction &#8211; JTA/JTS</title>
		<link>http://nirvikalpa.wordpress.com/2011/07/15/jta-jts/</link>
		<comments>http://nirvikalpa.wordpress.com/2011/07/15/jta-jts/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 20:57:11 +0000</pubDate>
		<dc:creator>techzen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[transaction]]></category>

		<guid isPermaLink="false">http://nirvikalpa.wordpress.com/?p=388</guid>
		<description><![CDATA[Tx.being/commit/rollback(programmatic) Programmatic tx model should only be used: client initiated tx, localized JTA Tx, and long running Tx. Client initiated Tx &#8211; then calls declarative Tx running in server/ejb. Also Exceptions should be carefully managed in programmatic tx + know that there is a problem of Tx context where in the stateless session bean the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nirvikalpa.wordpress.com&amp;blog=6920866&amp;post=388&amp;subd=nirvikalpa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Tx.being/commit/rollback(programmatic)<br />
<strong>Programmatic tx model</strong> should only be used: client initiated tx, localized JTA Tx, and long running Tx.<br />
Client initiated Tx &#8211; then calls declarative Tx running in server/ejb. Also Exceptions should be carefully managed in programmatic tx + know that there is a problem of Tx context where in the stateless session bean the tx started in one SSB cannot be passed on to the Tx started in another thread of another SSB.</p>
<p>JTS = database driver<br />
JTA = jdbc connector</p>
<p>To decide between &#8220;Required&#8221; and &#8220;Mandatory&#8221; &#8211; you need to see that if a method is not rolling back the transaction &#8211; then the method should be marked mandatory.</p>
<p>Transaction Isolation Level : Setting is DEPENDENT on the DB and the APPSERVER features.<br />
But TxIsolation if high is low on concurrency and high on consistency.  if low is high on concurrency and low on consistency.</p>
<p>Repeatable Read: These locks ensure that the rows touched by the query cannot be updated or deleted by a concurrent session until the current transaction completes (whether it is committed or rolled back).  These locks do not protect rows that have not yet been scanned from updates or deletes and do not prevent the insertion of new rows amid the rows that are already locked. </p>
<blockquote><p>Specifies that statements cannot read data that has been modified but not yet committed by other transactions and that no other transactions can modify data that has been read by the current transaction until the current transaction completes
</p></blockquote>
<p> Shared locks are placed on all data read by each statement in the transaction and are held until the transaction completes. This prevents other transactions from modifying any rows that have been read by the current transaction. Other transactions can insert new rows that match the search conditions of statements issued by the current transaction. If the current transaction then retries the statement it will retrieve the new rows, which results in phantom reads. Because shared locks are held to the end of a transaction</p>
<p>SERIALIZABLE<br />
Specifies the following:<br />
-Statements cannot read data that has been modified but not yet committed by other transactions.<br />
-No other transactions can modify data that has been read by the current transaction until the current transaction completes.<br />
-Other transactions cannot insert new rows with key values that would fall in the range of keys read by any statements in the current transaction until the current transaction completes.</p>
<p>3 DESIGN PATTERN for Transactions:<br />
=============================================</p>
<p>1/ client managed tx model : client manages tx start and end and server domain service must not rollback tx and most importantly mark it as Mandatory. the tx is propagated through the RMI using programmatic[ejb]/declerative[spring] at Client and declarative at the server side.</p>
<p>2/ Domain Service Owner Transaction Model &#8211; places the responsibility of managing of Tx start/end type on the service layer. / declarative tx/<br />
DAO &#8211; no tx responsibility. Client &#8211; no Tx respon</p>
<p>3/Server Delegate Owner Tx Design Pattern:<br />
Instead of client making 40 independent calls to the server &#8211; or the domain services each managing the tx of 40 calls &#8211; setup all calls in the Command Object &#8211; that is processed by a bean (component) &#8211; so there is one component processor that manages all transactions &#8211; and all other domain services in the app are just simply used in the tx.<br />
Command object is passed by the client to the server and the server has a bean that acts like a command tx method call processor.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nirvikalpa.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nirvikalpa.wordpress.com/388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nirvikalpa.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nirvikalpa.wordpress.com/388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nirvikalpa.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nirvikalpa.wordpress.com/388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nirvikalpa.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nirvikalpa.wordpress.com/388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nirvikalpa.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nirvikalpa.wordpress.com/388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nirvikalpa.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nirvikalpa.wordpress.com/388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nirvikalpa.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nirvikalpa.wordpress.com/388/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nirvikalpa.wordpress.com&amp;blog=6920866&amp;post=388&amp;subd=nirvikalpa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nirvikalpa.wordpress.com/2011/07/15/jta-jts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/852f6c2fa47c80cd1925e465645da88f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techzen</media:title>
		</media:content>
	</item>
		<item>
		<title>Event and handlers gwt</title>
		<link>http://nirvikalpa.wordpress.com/2011/05/17/event-and-handlers-gwt/</link>
		<comments>http://nirvikalpa.wordpress.com/2011/05/17/event-and-handlers-gwt/#comments</comments>
		<pubDate>Tue, 17 May 2011 13:13:33 +0000</pubDate>
		<dc:creator>techzen</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[gwt]]></category>

		<guid isPermaLink="false">http://nirvikalpa.wordpress.com/?p=368</guid>
		<description><![CDATA[1. Create one interface extending Eventhandler interface 2. Create one Event class that keeps reference of this handler in the GWT.Type class  and extends GWTEvent with a typed reference to the handler. Event dispatches control to handler . Dispatch is called internally by a class managing events which call&#8217;s the associated type to verify that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nirvikalpa.wordpress.com&amp;blog=6920866&amp;post=368&amp;subd=nirvikalpa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. Create one interface extending Eventhandler interface</p>
<p>2. Create one Event class that keeps reference of this handler in the GWT.Type class  and extends GWTEvent with a typed reference to the handler.</p>
<p>Event dispatches control to handler . Dispatch is called internally by a class managing events which call&#8217;s the associated type to verify that event match takes place.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nirvikalpa.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nirvikalpa.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nirvikalpa.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nirvikalpa.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nirvikalpa.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nirvikalpa.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nirvikalpa.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nirvikalpa.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nirvikalpa.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nirvikalpa.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nirvikalpa.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nirvikalpa.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nirvikalpa.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nirvikalpa.wordpress.com/368/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nirvikalpa.wordpress.com&amp;blog=6920866&amp;post=368&amp;subd=nirvikalpa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nirvikalpa.wordpress.com/2011/05/17/event-and-handlers-gwt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/852f6c2fa47c80cd1925e465645da88f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techzen</media:title>
		</media:content>
	</item>
		<item>
		<title>toolkit</title>
		<link>http://nirvikalpa.wordpress.com/2011/05/08/toolkit/</link>
		<comments>http://nirvikalpa.wordpress.com/2011/05/08/toolkit/#comments</comments>
		<pubDate>Sun, 08 May 2011 17:54:26 +0000</pubDate>
		<dc:creator>techzen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nirvikalpa.wordpress.com/?p=362</guid>
		<description><![CDATA[Get list of UI widgets to be used: http://code.google.com/webtoolkit/doc/latest/RefWidgetGallery.html Command line tools: http://code.google.com/webtoolkit/doc/1.6/RefCommandLineTools.html to remember are that You want to put the GWT selection script as early as possible within the body, so that it begins fetching the compiled script before other scripts (because it won&#8217;t block any other script requests). If you are going to be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nirvikalpa.wordpress.com&amp;blog=6920866&amp;post=362&amp;subd=nirvikalpa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Get list of UI widgets to be used: <a href="http://code.google.com/webtoolkit/doc/latest/RefWidgetGallery.html">http://code.google.com/webtoolkit/doc/latest/RefWidgetGallery.html</a></p>
<p>Command line tools: <a href="http://code.google.com/webtoolkit/doc/1.6/RefCommandLineTools.html">http://code.google.com/webtoolkit/doc/1.6/RefCommandLineTools.html</a></p>
<p>to remember are that</p>
<ul>
<li>You want to put the GWT selection script as early as possible within the body, so that it begins fetching the compiled script before other scripts (because it won&#8217;t block any other script requests).</li>
<li>If you are going to be fetching external images and scripts, you want to manage your two connections carefully.</li>
<li><tt>&lt;img&gt;</tt> tags are not guaranteed to be done loading when <tt>onModuleLoad()</tt> is called.</li>
<li><tt>&lt;script&gt;</tt> tags <strong>are</strong> guaranteed to be done loading when <tt>onModuleLoad()</tt> is called.</li>
</ul>
<div>
<p>If you have multiple EntryPoints (the interface that defines <tt>onModuleLoad()</tt>) within a module, they will all be called in sequence as soon as that module (and the outer document) is ready.</p>
<p>If you are loading multiple GWT modules within the same page, each module&#8217;s EntryPoint will be called as soon as both that module and the outer document is ready. Two modules&#8217; EntryPoints are not guaranteed to fire at the same time, or in the same order in which their selection scripts were specified in the host page.</p>
<pre>User	com.google.gwt.user.User
HTTP	com.google.gwt.http.HTTP
JSON	com.google.gwt.json.JSON
JUnit	com.google.gwt.junit.JUnit
XML	com.google.gwt.xml.XML
<a href="http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html">http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html</a>

<a href="http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html">http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html</a></pre>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nirvikalpa.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nirvikalpa.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nirvikalpa.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nirvikalpa.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nirvikalpa.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nirvikalpa.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nirvikalpa.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nirvikalpa.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nirvikalpa.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nirvikalpa.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nirvikalpa.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nirvikalpa.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nirvikalpa.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nirvikalpa.wordpress.com/362/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nirvikalpa.wordpress.com&amp;blog=6920866&amp;post=362&amp;subd=nirvikalpa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nirvikalpa.wordpress.com/2011/05/08/toolkit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/852f6c2fa47c80cd1925e465645da88f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techzen</media:title>
		</media:content>
	</item>
		<item>
		<title>Database structure</title>
		<link>http://nirvikalpa.wordpress.com/2011/03/17/database-structure/</link>
		<comments>http://nirvikalpa.wordpress.com/2011/03/17/database-structure/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 21:21:30 +0000</pubDate>
		<dc:creator>techzen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://nirvikalpa.wordpress.com/?p=344</guid>
		<description><![CDATA[So we studied that database structure and one of the fields that was interesting was the many to one linkage of employee with managers that was updated. Another was that the rating model was removed and restricted to the simple values. Also the initiative was defined as a central point to the survey taken. Like [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nirvikalpa.wordpress.com&amp;blog=6920866&amp;post=344&amp;subd=nirvikalpa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So we studied that database structure and one of the fields that was interesting was the many to one linkage of employee with managers that was updated. Another was that the rating model was removed and restricted to the simple values. Also the initiative was defined as a central point to the survey taken. Like a record of a specific survey.</p>
<p>Restricting myself to the existing old database structure I used the Jboss Hibernate tools to recreate the POJO&#8217;s out of the tables. It creates one hbm file per table per class.</p>
<p>JPA on the other hand creates all the class references in the persistence.xml file only. Does not go for individual xml files.All settings done through annotations in the classes themselves. In one way it&#8217;s clean but again need to refer to both xml/java files always&#8230;</p>
<p>Restricting myself to Hibernate to start with. Question is &#8211; all the java files named after tables created in one folder with hbm files &#8211; is there a way to push them to their own structure of packaging &#8211; how do reverse engineering customization takes place? &#8211; Going through that now.</p>
<p>Thereafter need to do a simple login with user. And show user specific data from employee table. Edit Profile. And Save. Logout.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nirvikalpa.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nirvikalpa.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nirvikalpa.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nirvikalpa.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nirvikalpa.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nirvikalpa.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nirvikalpa.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nirvikalpa.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nirvikalpa.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nirvikalpa.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nirvikalpa.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nirvikalpa.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nirvikalpa.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nirvikalpa.wordpress.com/344/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nirvikalpa.wordpress.com&amp;blog=6920866&amp;post=344&amp;subd=nirvikalpa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nirvikalpa.wordpress.com/2011/03/17/database-structure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/852f6c2fa47c80cd1925e465645da88f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techzen</media:title>
		</media:content>
	</item>
		<item>
		<title>map</title>
		<link>http://nirvikalpa.wordpress.com/2011/03/03/map/</link>
		<comments>http://nirvikalpa.wordpress.com/2011/03/03/map/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 22:10:50 +0000</pubDate>
		<dc:creator>techzen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nirvikalpa.wordpress.com/?p=337</guid>
		<description><![CDATA[Trying to push the war to webapps &#8211; but because the project was marked as tomcat project with the path and integration specified so the server.xml was modified with the Context element tag. So while the outputDirectory tag pushes the war to the output folder, the webappDirectory tag ensures that the contents of assembled webapp [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nirvikalpa.wordpress.com&amp;blog=6920866&amp;post=337&amp;subd=nirvikalpa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Trying to push the war to webapps &#8211; but because the project was marked as tomcat project with the path and integration specified so the server.xml was modified with the Context element tag. So while the outputDirectory tag pushes the war to the output folder, the webappDirectory tag ensures that the contents of assembled webapp directory are copied over. Both of these are not required if project is integrated with tomcat in eclipse itself.</p>
<p>Then the mapping for the jsp file was not working for some reason? . Needed to switch on logging &#8211; so enabled dependency for slf4j and log4j. Attempting to first get jsp displayed and then the controller.</p>
<p>The problem was that you cannot get the jsp to be displayed directly without having the controller come into picture even if it is a plain vinalla jsp . The point is that if the control is passing through the DispatcherServlet then the handler for that should be existing &#8211; it cannot just pass it to the viewResolver without the controller.</p>
<p>&nbsp;</p>
<p>Now issue was even after setting the urlFileNameController and the internalviewresolver the jsp was not being displayed. It was showing error as /snail/WEB-INF/jsp/home.jsp path not found.</p>
<p>The reason is the path setting in the internal view resolver. if you set prefix as :</p>
<p>/WEB-INF/jsp  - then this is a relative prefix- results in dispatcher path: /WEB-INF/jsp/home.jsp</p>
<p>If you set prefix as WEB-INF/jsp &#8211; then this is an absolute uri redirection : results in dispatcher path as  - WEB-INF/jsp/home.jsp</p>
<p>&nbsp;</p>
<p>So the whole point is &#8211; in what format the redirection is taking place using the core RequestDispatcher class of the servlet API. Also , when one defines the mappings for the SimpleUrlHandlerMapping then the key should not include the servlet-mapping path &#8211; eg: not like /app/home but instead **/home/* or /home or home. That is also a point to take care for ensuring that uri mapping is found.</p>
<p>&nbsp;</p>
<p>So then &#8211; the built in controller for this is URLFileNameViewController</p>
<p>read on maven clean prepare-package war:exploded</p>
<p>what is the goal and what is the phase?</p>
<p>when can we stop &#8211; how do we use the lifecycle list?</p>
<p>&#8212;&#8212;&#8212;&#8211;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nirvikalpa.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nirvikalpa.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nirvikalpa.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nirvikalpa.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nirvikalpa.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nirvikalpa.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nirvikalpa.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nirvikalpa.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nirvikalpa.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nirvikalpa.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nirvikalpa.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nirvikalpa.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nirvikalpa.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nirvikalpa.wordpress.com/337/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nirvikalpa.wordpress.com&amp;blog=6920866&amp;post=337&amp;subd=nirvikalpa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nirvikalpa.wordpress.com/2011/03/03/map/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/852f6c2fa47c80cd1925e465645da88f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techzen</media:title>
		</media:content>
	</item>
		<item>
		<title>Eclipse white space error</title>
		<link>http://nirvikalpa.wordpress.com/2011/03/01/eclipse-white-space-error/</link>
		<comments>http://nirvikalpa.wordpress.com/2011/03/01/eclipse-white-space-error/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 02:24:27 +0000</pubDate>
		<dc:creator>techzen</dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://nirvikalpa.wordpress.com/?p=333</guid>
		<description><![CDATA[Error in the beans xml file when adding a new namespace in the spring while using eclipse IDE: White spaces are required between publicId and systemId. The error comes because of not having the xsd corresponding to the namespace existing when defining new namespace using the spring tools plugins. The way to resolve it is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nirvikalpa.wordpress.com&amp;blog=6920866&amp;post=333&amp;subd=nirvikalpa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Error in the beans xml file when adding a new namespace in the spring while using eclipse IDE:</p>
<p><strong>White spaces are required between publicId and systemId.</strong></p>
<p>The error comes because of not having the xsd corresponding to the namespace existing when defining new namespace using the spring tools plugins. The way to resolve it is ensure that in the schemaLocation you are mentioning first the namespace unique id and then a space followed by the xsd path. Eg:</p>
<p><pre class="brush: xml;">

xsi:schemaLocation=&quot;http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-3.0.xsd&quot;

</pre></p>
<p>The below is incorrect:</p>
<p>xsi:schemaLocation=&#8221;http://www.springframework.org/schema/beans&#8221;"</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nirvikalpa.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nirvikalpa.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nirvikalpa.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nirvikalpa.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nirvikalpa.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nirvikalpa.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nirvikalpa.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nirvikalpa.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nirvikalpa.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nirvikalpa.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nirvikalpa.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nirvikalpa.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nirvikalpa.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nirvikalpa.wordpress.com/333/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nirvikalpa.wordpress.com&amp;blog=6920866&amp;post=333&amp;subd=nirvikalpa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nirvikalpa.wordpress.com/2011/03/01/eclipse-white-space-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/852f6c2fa47c80cd1925e465645da88f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techzen</media:title>
		</media:content>
	</item>
	</channel>
</rss>
