<?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>The Singhology&#039;s Blog</title>
	<atom:link href="http://jsinghfoss.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jsinghfoss.wordpress.com</link>
	<description>&#34;To manage business well is to manage technology well and vice-versa.&#34;</description>
	<lastBuildDate>Wed, 11 Jan 2012 14:41:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jsinghfoss.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>The Singhology&#039;s Blog</title>
		<link>http://jsinghfoss.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jsinghfoss.wordpress.com/osd.xml" title="The Singhology&#039;s Blog" />
	<atom:link rel='hub' href='http://jsinghfoss.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Algebra is fun. Why? Cuz it ends with &#8220;bra&#8221;</title>
		<link>http://jsinghfoss.wordpress.com/2011/09/05/algebra-is-fun-why-cuz-it-ends-with-bra/</link>
		<comments>http://jsinghfoss.wordpress.com/2011/09/05/algebra-is-fun-why-cuz-it-ends-with-bra/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 00:29:55 +0000</pubDate>
		<dc:creator>jsinghfoss</dc:creator>
		
		<guid isPermaLink="false">http://jsinghfoss.wordpress.com/?p=549</guid>
		<description><![CDATA[What is Algebra? It helps you to find missing information or Unknown to be specific. In a real life scenario, the unknown could be the total cost of your next laptop after list price + taxes. Or it could be used to calculate for total interest paid after the end amortization period. The unknown in general in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jsinghfoss.wordpress.com&amp;blog=5288377&amp;post=549&amp;subd=jsinghfoss&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>What is Algebra?</strong> It helps you to find missing information or Unknown to be specific. In a real life scenario, the unknown could be the total cost of your next laptop after list price + taxes. Or it could be used to calculate for total interest paid after the end amortization period.</p>
<p>The unknown in general in Mathematics is denoted by &#8220;x&#8221;. But you could always use your own character. The x (or unknown) than becomes a variable.</p>
<p><strong>What is a Math equation?</strong> The equation in Mathematics represents a sentence. Just like how we have in English language. The equation is what we use to figure out the value of unknown. For example, List Price + Tax = Total Price Paid</p>
<p>Please note we can always rearrange equations. For example, List Price = Total Price Paid &#8211; Tax</p>
<p>TIP: It helps to write out the entire sentence in English first and then pick information out of it.</p>
<p>The process of solving for the unknown involves isolating variable x from all values. At the end you will get a value like x = 10 or x = 2.33. When you have fully isolated the variable x you have solved the equation.</p>
<p><strong>What is an inverse operation?</strong> The inverse operation takes place when we are trying to isolate the variable x. It is very important to maintain balance during the inverse operation. It is done by applying the same operator + number on both sides (and not just one). The inverse operation for addition is subtraction. And the inverse operation for multiplication is division.</p>
<p>You could always use the process of substitution to verify your calculation. It is done by substituting the value of x back into the equation.</p>
<p><strong>The process of solving a problem using Algebra</strong></p>
<p>1. Understand the problem statement &#8211; Retrieve all given information and create a sentence in English language. The sentence will include numbers that will help you to calculate the unknown value.</p>
<p>2. Create equation to solve for x</p>
<p>3. Figure out how to isolate the variable x</p>
<p>4. Manipulate the equation &#8211; You will apply inverse operation here</p>
<p>5. Rewrite the equation</p>
<p>6. Equation is solved you have found the value of x. You&#8217;ll get a value in a format x = 10, or x = 2.33.</p>
<p>7. You may use the process of substitution to verify your calculation</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jsinghfoss.wordpress.com/549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jsinghfoss.wordpress.com/549/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jsinghfoss.wordpress.com/549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jsinghfoss.wordpress.com/549/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jsinghfoss.wordpress.com/549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jsinghfoss.wordpress.com/549/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jsinghfoss.wordpress.com/549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jsinghfoss.wordpress.com/549/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jsinghfoss.wordpress.com/549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jsinghfoss.wordpress.com/549/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jsinghfoss.wordpress.com/549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jsinghfoss.wordpress.com/549/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jsinghfoss.wordpress.com/549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jsinghfoss.wordpress.com/549/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jsinghfoss.wordpress.com&amp;blog=5288377&amp;post=549&amp;subd=jsinghfoss&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jsinghfoss.wordpress.com/2011/09/05/algebra-is-fun-why-cuz-it-ends-with-bra/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/84fed36429de1948901f9a2be656e434?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jatinder Singh</media:title>
		</media:content>
	</item>
		<item>
		<title>Unescape unicode \\ in Java String</title>
		<link>http://jsinghfoss.wordpress.com/2011/08/17/unescape-unicode-in-java-string/</link>
		<comments>http://jsinghfoss.wordpress.com/2011/08/17/unescape-unicode-in-java-string/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 15:03:07 +0000</pubDate>
		<dc:creator>jsinghfoss</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Unicode]]></category>

		<guid isPermaLink="false">http://jsinghfoss.wordpress.com/?p=543</guid>
		<description><![CDATA[I ran into a problem where my unicode slashes (\\) were not escaped properly. I had the following unicode string in a java variable: \\u0011\\u00FF\\u0000\\u0001 To get correct 4 bytes out of this unicode string you must use StringEscapeUtils.unescapeJava(unicodeString) available inside Apache&#8217;s Common Lang jar. The method will correctly edit the above unicode string into: \u0011\u00FF\u0000\u0001 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jsinghfoss.wordpress.com&amp;blog=5288377&amp;post=543&amp;subd=jsinghfoss&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I ran into a problem where my unicode slashes (\\) were not escaped properly. I had the following unicode string in a java variable:</p>
<p>\\u0011\\u00FF\\u0000\\u0001</p>
<p>To get correct 4 bytes out of this unicode string you must use StringEscapeUtils.unescapeJava(unicodeString) available inside Apache&#8217;s Common Lang jar.</p>
<p>The method will correctly edit the above unicode string into:</p>
<p>\u0011\u00FF\u0000\u0001</p>
<p>So, on calling getBytes() on your new unescaped string you will get 4 bytes.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jsinghfoss.wordpress.com/543/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jsinghfoss.wordpress.com/543/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jsinghfoss.wordpress.com/543/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jsinghfoss.wordpress.com/543/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jsinghfoss.wordpress.com/543/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jsinghfoss.wordpress.com/543/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jsinghfoss.wordpress.com/543/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jsinghfoss.wordpress.com/543/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jsinghfoss.wordpress.com/543/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jsinghfoss.wordpress.com/543/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jsinghfoss.wordpress.com/543/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jsinghfoss.wordpress.com/543/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jsinghfoss.wordpress.com/543/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jsinghfoss.wordpress.com/543/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jsinghfoss.wordpress.com&amp;blog=5288377&amp;post=543&amp;subd=jsinghfoss&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jsinghfoss.wordpress.com/2011/08/17/unescape-unicode-in-java-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/84fed36429de1948901f9a2be656e434?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jatinder Singh</media:title>
		</media:content>
	</item>
		<item>
		<title>GWT 2.2.0 RequestFactory + Spring 3.0.x Integration</title>
		<link>http://jsinghfoss.wordpress.com/2011/08/10/gwt-2-2-0-requestfactory-spring-3-0-x-integration/</link>
		<comments>http://jsinghfoss.wordpress.com/2011/08/10/gwt-2-2-0-requestfactory-spring-3-0-x-integration/#comments</comments>
		<pubDate>Wed, 10 Aug 2011 14:31:48 +0000</pubDate>
		<dc:creator>jsinghfoss</dc:creator>
				<category><![CDATA[GWT]]></category>
		<category><![CDATA[Spring Framework]]></category>

		<guid isPermaLink="false">http://jsinghfoss.wordpress.com/?p=537</guid>
		<description><![CDATA[MOVED from old blog I must say it’s been a while since my last post. Lately, I have been really busy with work and part-time projects that I could not even reserve a minute to come here. But anyways today I’m here to reveal some really good work that I was stuck on for almost [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jsinghfoss.wordpress.com&amp;blog=5288377&amp;post=537&amp;subd=jsinghfoss&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration:underline;"><strong>MOVED from old blog</strong></span></p>
<p>I must say it’s been a while since my last post. Lately, I have been really busy with work and part-time projects that I could not even reserve a minute to come here. But anyways today I’m here to reveal some really good work that I was stuck on for almost a week now. In my project, I had decided to implement <strong>GWT</strong> 2.2.0 along with Spring 3.0.x. Talking about communication: one way to enable communication between client and server is to use <strong>GWT</strong> RPC mechanism. But RPC from what I have learned is more of a service oriented approach. My first need was to have something in place for CRUD functionality. For data oriented tasks such as CRUD, Google has invented something called <strong>RequestFactory</strong> (RF). After skimming the Google tutorial, RF sounded like the right approach for CRUDing data. With RF we can also control the amount of data client will present on the UI. Now since I’m using Spring, the challenge was to discover a way to integrate RF with Spring. I spent hours researching on how to do this but couldn’t find a way. That being said there’s enough material available on Google in regards to RPC + Spring integration. After few days of hard luck, I finally invented a solution on how to do this. I would also like to give credit to “<a href="https://github.com/niloc132/">niloc132</a>” who’s usually on #<strong>gwt</strong> and helped with <strong>GWT</strong>.</p>
<p><strong>TWITTER:</strong> Please give credits where due and you can follow me on twitter at <strong><a href="http://twitter.com/#!/jsinghfoss">@jsinghfoss</a>.</strong></p>
<p><strong>LICENSE:</strong> You are free to use this solution for personal or commercial use. You can also modify the solution in any way. In case if you have enhanced the solution, please share with everyone. Provided as-is without any guaranty.</p>
<p><strong>EDIT 4/27/2011</strong> I have noticed few bugs in the below source-code. Once all the bugs are fixed, I will edit this post to include changes. So, stay tuned!</p>
<p><strong>EDIT 5/5/2011</strong> Modified GWTSpringEntityLocator class. Changes include: class does not implement ApplicationContextAware interface anymore, Create method creates an instance of the entity, Removed unused context (as well as set method).</p>
<p><span style="text-decoration:underline;"><strong>RequestFactory + Spring INTEGRATION SOLUTION</strong></span></p>
<p><strong>STEP 1 - </strong><strong>web.xml</strong></p>
<p>Declare DispatcherServlet and map it to “<strong>/gwtRequest</strong>”</p>
<pre>&lt;servlet&gt;
  &lt;servlet-name&gt;singhsolution&lt;/servlet-name&gt;
  &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
  &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
&lt;/servlet&gt;
&lt;servlet-mapping&gt;
  &lt;servlet-name&gt;singhsolution&lt;/servlet-name&gt;
  &lt;url-pattern&gt;/gwtRequest&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;</pre>
<p>The above code will intercept all incoming requests whose url pattern contains “<strong>/gwtRequest</strong>“.</p>
<p><strong>STEP 2 - </strong><strong>singhsolution-servlet.xml</strong></p>
<p>Create a servlet mapping file by the name “<strong>singhsolution-servlet.xml</strong>“. It will contain information related to the servlets managed by Spring.</p>
<p>Inside this file we need to declare a <strong>SimplUrlHandlerMapping</strong> bean which will map a value to its appropriate controller. In our case, the controller is called “<strong>gwtRequestFactoryController</strong>“.</p>
<pre>&lt;bean&gt;
		&lt;property name="mappings"&gt;
			&lt;value&gt;
				/gwtRequest=gwtRequestFactoryController
 			&lt;/value&gt;
		&lt;/property&gt;
	&lt;/bean&gt;</pre>
<p>Before we declare our “<strong>gwtRequestController</strong>” we need to create few classes that will be used by the client to find appropriate entities and services managed by Spring.</p>
<p><strong>STEP 3 - </strong>Create the following classes</p>
<p><strong>GWTSpringServiceLayerDecorator<br />
GWTSpringEntityLocator<br />
GWTSpringServiceLocator</strong></p>
<pre>public class GWTSpringServiceLayerDecorator extends ServiceLayerDecorator
		implements ApplicationContextAware {
	private ApplicationContext context;
	@Override
	public &lt;T extends Locator&lt;?, ?&gt;&gt; T createLocator(Class&lt;T&gt; clazz) {
		return context.getBean(clazz);
	}
	@Override
	public Object createServiceInstance(Method contextMethod
			Method domainMethod) {
		// Check if the request needs a service locator
		Class&lt;? extends ServiceLocator&gt; locatorType = getTop()
				.resolveServiceLocator(contextMethod, domainMethod);
		assert locatorType != null;
		// Inject an instance of the locator itself,
		// and then get an instance from it
		ServiceLocator locator = context.getBean(locatorType);
		return locator.getInstance(domainMethod.getDeclaringClass());
	}
	@Override
	public Object invoke(Method domainMethod, Object... args) {
		Object response = super.invoke(domainMethod, args);
		try {
			if (response instanceof Callable) {
				return ((Callable&lt;?&gt;) response).call();
			} else {
				return response;
			}
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}
	public void setApplicationContext(ApplicationContext context)
			throws BeansException {
		this.context = context;
	}
}</pre>
<p><strong>GWTSpringEntityLocator</strong> will be used to locate JPA entities managed by Spring configuration files.</p>
<pre>public class GWTSpringEntityLocator&lt;T extends HasVersionAndId&gt; extends
		Locator&lt;T, Long&gt; {
	@Autowired
	EntityManager entityManager;

	@Override
	public T create(Class&lt;? extends T&gt; clazz) {
		try
		{
			return clazz.newInstance();
		} catch (InstantiationException e)
		{
		       throw new RuntimeException(e);
		} catch (IllegalAccessException e)
		{
			throw new RuntimeException(e);
		}
	}

	@Override
	public T find(Class&lt;? extends T&gt; clazz, Long id) {
		return entityManager.find(clazz, id);
	}
	@Override
	public Class&lt;T&gt; getDomainType() {
		// Unused, and if it becomes used, we're in trouble
		throw new UnsupportedOperationException();
	}
	@Override
	public Long getId(T domainObject) {
		return domainObject.getId();
	}
	@Override
	public Class&lt;Long&gt; getIdType() {
		return Long.class;
	}
	@Override
	public Object getVersion(T domainObject) {
		return domainObject.getVersion();
	}
}</pre>
<p><strong>GWTSpringServiceLocator</strong> will be used to locate services managed by Spring configuration files.</p>
<pre>public class GWTSpringServiceLocator implements ServiceLocator,
		ApplicationContextAware {
	private ApplicationContext context;
	public Object getInstance(Class&lt;?&gt; clazz) {
		return context.getBean(clazz);
	}
	public void setApplicationContext(ApplicationContext context)
			throws BeansException {
		this.context = context;
	}
}</pre>
<p><strong>STEP 4</strong></p>
<p>In this step, we’ll implement a hack that I have created which will manage our <strong>RequestFactoryServlet</strong> (i.e. Spring will manage our <strong>RequestFactoryServlet</strong>) containing our custom<strong>ServiceLayerDecorator</strong> implementation.</p>
<p><strong>CustomServletWrappingController</strong></p>
<p>Please note that this is an initial hack and I am sure there is room for improvement. The negative side of this hack is we will have to pretty much rewrite the entire <strong>ServletWrappingController</strong> class as it’s an<strong>immutable</strong> class. The “<strong>afterPropertiesSet</strong>” method is where my hack is implemented. The stock implementation of this method creates an instance of a servlet defined in the Spring configuration file. But in my hack I’ve replaced the following line:</p>
<pre>this .servletInstance = (Servlet) this .servletClass.newInstance();</pre>
<p><strong>to</strong></p>
<pre>this.servletInstance = (Servlet) this.getApplicationContext().getBean("requestFactoryServlet");</pre>
<p><strong>IMPORTANT NOTE</strong>: So as you can see, we are not using the servlet class defined in our Spring configuration file and instead hard coding the Servlet that we intend to use. Clearly, the downside of this approach is your <strong>CustomServletWrappingController</strong> can only manage one servlet i.e. your <strong>RequestFactoryServlet</strong>.</p>
<p>Hey but this works!</p>
<pre>public class CustomServletWrappingController extends ServletWrappingController {
	private Class servletClass;
	private String servletName;
	private Properties initParameters = new Properties();
	private String beanName;
	private Servlet servletInstance;
	/**
	 * Set the class of the servlet to wrap. Needs to implement
	 * &lt;code&gt;javax.servlet.Servlet&lt;/code&gt;.
	 *
	 * @see javax.servlet.Servlet
	 */
	public void setServletClass(Class servletClass) {
		this.servletClass = servletClass;
	}
	/**
	 * Set the name of the servlet to wrap. Default is the bean name of this
	 * controller.
	 */
	public void setServletName(String servletName) {
		this.servletName = servletName;
	}
	/**
	 * Specify init parameters for the servlet to wrap, as name-value pairs.
	 */
	public void setInitParameters(Properties initParameters) {
		this.initParameters = initParameters;
	}
	public void setBeanName(String name) {
		this.beanName = name;
	}
	/**
	 * Overriden to implement our hack. It initializes the wrapped Servlet
	 * instance.
	 *
	 * @author jatinder-singh
	 * @see javax.servlet.Servlet#init(javax.servlet.ServletConfig)
	 */
	@Override
	public void afterPropertiesSet() throws Exception {
		if (this.servletClass == null) {
			throw new IllegalArgumentException("servletClass is required");
		}
		if (!Servlet.class.isAssignableFrom(this.servletClass)) {
			throw new IllegalArgumentException("servletClass ["
					+ this.servletClass.getName()
					+ "] needs to implement interface [javax.servlet.Servlet]");
		}
		if (this.servletName == null) {
			this.servletName = this.beanName;
		}
		// We retrieve RF instance instead of using the one defined in
		// singhsolution-servlet.xml
		// Author: Jatinder Singh
		this.servletInstance = (Servlet) this.getApplicationContext().getBean(
				"requestFactoryServlet");
		this.servletInstance.init(new DelegatingServletConfig());
	}
	/**
	 * Invoke the the wrapped Servlet instance.
	 *
	 * @see javax.servlet.Servlet#service(javax.servlet.ServletRequest,
	 *      javax.servlet.ServletResponse)
	 */
	@Override
	protected ModelAndView handleRequestInternal(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		this.servletInstance.service(request, response);
		return null;
	}
	/**
	 * Destroy the wrapped Servlet instance.
	 *
	 * @see javax.servlet.Servlet#destroy()
	 */
	public void destroy() {
		this.servletInstance.destroy();
	}
	/**
	 * Internal implementation of the ServletConfig interface, to be passed to
	 * the wrapped servlet. Delegates to ServletWrappingController fields and
	 * methods to provide init parameters and other environment info.
	 */
	private class DelegatingServletConfig implements ServletConfig {
		public String getServletName() {
			return servletName;
		}
		public ServletContext getServletContext() {
			return CustomServletWrappingController.this.getServletContext();
		}
		public String getInitParameter(String paramName) {
			return initParameters.getProperty(paramName);
		}
		public Enumeration getInitParameterNames() {
			return initParameters.keys();
		}
	}
}</pre>
<p>If you are here you are pretty much there <img src="http://blog.gurbits.ca/jatinder/wp-includes/images/smilies/icon_smile.gif" alt=":)" /> . Now edit your <strong>singhsolution-servlet.xml</strong> file to include all the beans you have created above.</p>
<pre>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;beans xmlns="http://www.springframework.org/schema/beans" 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"&gt;
	&lt;bean&gt;
		&lt;property name="mappings"&gt;
			&lt;value&gt;
				/gwtRequest=gwtRequestFactoryController
 			&lt;/value&gt;
		&lt;/property&gt;
	&lt;/bean&gt;
	&lt;bean id="gwtSpringServiceLayerDecorator" 		class="com.jsi.singhsolution.server.servlet.GWTSpringServiceLayerDecorator" /&gt;
	&lt;bean id="defaultExceptionHandler" 		class="com.google.<strong>gwt</strong>.requestfactory.server.DefaultExceptionHandler" /&gt;
	&lt;!-- RequestFactoryServlet bean is scoped as singleton. Injecting custom  		SpringServiceLayerDecorator. --&gt;
	&lt;bean id="requestFactoryServlet" 		class="com.google.<strong>gwt</strong>.requestfactory.server.RequestFactoryServlet" 		scope="singleton"&gt;
		&lt;constructor-arg ref="defaultExceptionHandler" /&gt;
		&lt;constructor-arg ref="gwtSpringServiceLayerDecorator" /&gt;
	&lt;/bean&gt;
	&lt;bean id="gwtSpringEntityLocator" 		class="com.jsi.singhsolution.server.servlet.GWTSpringEntityLocator" /&gt;
	&lt;bean id="gwtSpringServiceLocator" 		class="com.jsi.singhsolution.server.servlet.GWTSpringServiceLocator" /&gt;
	&lt;!-- IMPORTANT NOTE: CustomServletWrappingController is a hacked version  		of ServletWrappingController. The servlet class defined here will not be  		used. Please see CustomServletWrappingController for more information. --&gt;
	&lt;bean id="gwtRequestFactoryController" 		class="com.jsi.singhsolution.server.servlet.CustomServletWrappingController"&gt;
		&lt;property name="servletClass"&gt;
			&lt;value&gt;com.google.<strong>gwt</strong>.requestfactory.server.RequestFactoryServlet
			&lt;/value&gt;
		&lt;/property&gt;
		&lt;property name="servletName"&gt;
			&lt;value&gt;gwtRequest&lt;/value&gt;
		&lt;/property&gt;
	&lt;/bean&gt;
&lt;/beans&gt;</pre>
<p>If you have followed my instructions carefully, you have created all the required classes including the hack that is needed for Spring to manage <strong>RequestFactoryServlet</strong> in its machinery.</p>
<p><strong>RequestFactory in Action</strong></p>
<p>I am going to assume you know a little bit of <strong>GWT</strong>. The below code will end up calling a Spring Service called <strong>UserDetailsService</strong>. Once the user is returned successfully we display its first name.</p>
<pre>requestFactory.userDetailsRequest().getUserByUsername("singh").fire( new Receiver&lt;UserEntityProxy&gt;() {
					@Override
					public void onSuccess(UserEntityProxy user) {
						RootPanel.get("result").add(new HTML("Username was retrieved: " + user.getFirstName()));
					}
				});</pre>
<p><strong>How this hack can be improved?</strong></p>
<p>If I could inject my custom <strong>ServiceLayerDecorator</strong> class in the RequestFactoryServlet class defined in the actual <strong>ServletWrappingController</strong> bean, will solve our issue of hardcoding the Servlet; and we won’t need a <strong>CustomServletWrappingController</strong> that we have currently in place.</p>
<p>I don’t really have a code sample for this yet but I may create one in future. If you think the above code can be improved, please drop a comment or email me at j.singh.developer@gmail.com.</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jsinghfoss.wordpress.com/537/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jsinghfoss.wordpress.com/537/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jsinghfoss.wordpress.com/537/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jsinghfoss.wordpress.com/537/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jsinghfoss.wordpress.com/537/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jsinghfoss.wordpress.com/537/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jsinghfoss.wordpress.com/537/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jsinghfoss.wordpress.com/537/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jsinghfoss.wordpress.com/537/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jsinghfoss.wordpress.com/537/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jsinghfoss.wordpress.com/537/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jsinghfoss.wordpress.com/537/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jsinghfoss.wordpress.com/537/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jsinghfoss.wordpress.com/537/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jsinghfoss.wordpress.com&amp;blog=5288377&amp;post=537&amp;subd=jsinghfoss&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jsinghfoss.wordpress.com/2011/08/10/gwt-2-2-0-requestfactory-spring-3-0-x-integration/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/84fed36429de1948901f9a2be656e434?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jatinder Singh</media:title>
		</media:content>

		<media:content url="http://blog.gurbits.ca/jatinder/wp-includes/images/smilies/icon_smile.gif" medium="image">
			<media:title type="html">:)</media:title>
		</media:content>
	</item>
		<item>
		<title>Working on Android platform</title>
		<link>http://jsinghfoss.wordpress.com/2010/08/17/working-on-android-platform/</link>
		<comments>http://jsinghfoss.wordpress.com/2010/08/17/working-on-android-platform/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 04:21:42 +0000</pubDate>
		<dc:creator>jsinghfoss</dc:creator>
				<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">https://jsinghfoss.wordpress.com/2010/08/17/working-on-android-platform/</guid>
		<description><![CDATA[It&#8217;s 00:00 and I just finished reading Pro Android development  book. Working on this platform is a very seamless experience and things are easy to absorb and are obvious. There are so many resources and sample apps available that it has become so much easier for me to learn Android. From my experience it is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jsinghfoss.wordpress.com&amp;blog=5288377&amp;post=521&amp;subd=jsinghfoss&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s 00:00 and I just finished reading Pro Android development  book. Working on this platform is a very seamless experience and things are easy to absorb and are obvious. There are so many resources and sample apps available that it has become so much easier for me to learn Android. From my experience it is more fun to learn if you have an actual device with you. I can run my sample apps on the device directly within seconds. It is much faster than running it on the emulator. It&#8217;s actually seconds as compared to minutes.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jsinghfoss.wordpress.com/521/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jsinghfoss.wordpress.com/521/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jsinghfoss.wordpress.com/521/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jsinghfoss.wordpress.com/521/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jsinghfoss.wordpress.com/521/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jsinghfoss.wordpress.com/521/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jsinghfoss.wordpress.com/521/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jsinghfoss.wordpress.com/521/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jsinghfoss.wordpress.com/521/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jsinghfoss.wordpress.com/521/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jsinghfoss.wordpress.com/521/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jsinghfoss.wordpress.com/521/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jsinghfoss.wordpress.com/521/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jsinghfoss.wordpress.com/521/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jsinghfoss.wordpress.com&amp;blog=5288377&amp;post=521&amp;subd=jsinghfoss&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jsinghfoss.wordpress.com/2010/08/17/working-on-android-platform/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/84fed36429de1948901f9a2be656e434?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jatinder Singh</media:title>
		</media:content>
	</item>
		<item>
		<title>AppFuse &#8211; Fully Deployed &amp; Working</title>
		<link>http://jsinghfoss.wordpress.com/2010/07/30/appfuse-fully-deployed-working/</link>
		<comments>http://jsinghfoss.wordpress.com/2010/07/30/appfuse-fully-deployed-working/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 03:48:26 +0000</pubDate>
		<dc:creator>jsinghfoss</dc:creator>
				<category><![CDATA[AppFuse Light]]></category>
		<category><![CDATA[Maven]]></category>

		<guid isPermaLink="false">http://jsinghfoss.wordpress.com/?p=517</guid>
		<description><![CDATA[After hours of work and research, I have finally deployed AppFuse on my hosting account. I have worked with all the builds of AppFuse and will stick with AppFuse light. There are number of reasons for this. First of all, my hosting provider doesn&#8217;t support Maven repository and therefore I cannot use anything that depends [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jsinghfoss.wordpress.com&amp;blog=5288377&amp;post=517&amp;subd=jsinghfoss&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After hours of work and research, I have finally deployed AppFuse on my hosting account. I have worked with all the builds of AppFuse and will stick with AppFuse light. There are number of reasons for this. First of all, my hosting provider doesn&#8217;t support Maven repository and therefore I cannot use anything that depends on Maven (I know there&#8217;s Maven Wagon, but don&#8217;t have enough time to test it). So AppFuse itself is out of the equation. There are few things that I like in AppFuse core and will move those  to AppFuse Light. So far my experience with AppFuse has been outstanding and have learnt a lot of things during the process (Sitemesh, I guess I will love it).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jsinghfoss.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jsinghfoss.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jsinghfoss.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jsinghfoss.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jsinghfoss.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jsinghfoss.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jsinghfoss.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jsinghfoss.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jsinghfoss.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jsinghfoss.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jsinghfoss.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jsinghfoss.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jsinghfoss.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jsinghfoss.wordpress.com/517/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jsinghfoss.wordpress.com&amp;blog=5288377&amp;post=517&amp;subd=jsinghfoss&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jsinghfoss.wordpress.com/2010/07/30/appfuse-fully-deployed-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/84fed36429de1948901f9a2be656e434?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jatinder Singh</media:title>
		</media:content>
	</item>
		<item>
		<title>Spring Security &#8211; Sample App Now Available (JGrocery)</title>
		<link>http://jsinghfoss.wordpress.com/2010/07/28/spring-security-sample-app-now-available-jgrocery/</link>
		<comments>http://jsinghfoss.wordpress.com/2010/07/28/spring-security-sample-app-now-available-jgrocery/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 14:20:17 +0000</pubDate>
		<dc:creator>jsinghfoss</dc:creator>
				<category><![CDATA[JGrocery]]></category>

		<guid isPermaLink="false">http://jsinghfoss.wordpress.com/?p=513</guid>
		<description><![CDATA[Last night, I quickly read through the Spring Recipes &#62; Spring Security chapter and extended JGrocery sample application with Spring Security. I have committed the changes to my repository and it&#8217;s available for download. So that you can quickly run and see the application, I have provided a .war file under download section. The source [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jsinghfoss.wordpress.com&amp;blog=5288377&amp;post=513&amp;subd=jsinghfoss&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Last night, I quickly read through the Spring Recipes &gt; Spring Security chapter and extended JGrocery sample application with Spring Security. I have committed the changes to my repository and it&#8217;s available for download. So that you can quickly run and see the application, I have provided a .war file under download section. The source code is available through source section of the repository.</p>
<p>It took me about 30 minutes to implement this module. The security module is very developer friendly and easy to use and implement. Spring security secures a web application at different levels including URL access level, the method invocation level, the view rendering level, and the domain object level.</p>
<p>Things that I am working on currently (and may extend JGrocery with these technologies): Hibernate, Spring Web Flow, AppFuse, ant, Maven</p>
<p><a href="http://code.google.com/p/jgrocery-v2/" target="_blank">Click here to visit JGrocery Repository </a>or use this link &#8211; http://code.google.com/p/jgrocery-v2/</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jsinghfoss.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jsinghfoss.wordpress.com/513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jsinghfoss.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jsinghfoss.wordpress.com/513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jsinghfoss.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jsinghfoss.wordpress.com/513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jsinghfoss.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jsinghfoss.wordpress.com/513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jsinghfoss.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jsinghfoss.wordpress.com/513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jsinghfoss.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jsinghfoss.wordpress.com/513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jsinghfoss.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jsinghfoss.wordpress.com/513/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jsinghfoss.wordpress.com&amp;blog=5288377&amp;post=513&amp;subd=jsinghfoss&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jsinghfoss.wordpress.com/2010/07/28/spring-security-sample-app-now-available-jgrocery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/84fed36429de1948901f9a2be656e434?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jatinder Singh</media:title>
		</media:content>
	</item>
		<item>
		<title>AppFuse Deployment &#8211; Private Tomcat</title>
		<link>http://jsinghfoss.wordpress.com/2010/07/27/appfuse-deployment-private-tomcat/</link>
		<comments>http://jsinghfoss.wordpress.com/2010/07/27/appfuse-deployment-private-tomcat/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 02:24:01 +0000</pubDate>
		<dc:creator>jsinghfoss</dc:creator>
				<category><![CDATA[AppFuse]]></category>
		<category><![CDATA[AppFuse Deployment]]></category>

		<guid isPermaLink="false">http://jsinghfoss.wordpress.com/?p=510</guid>
		<description><![CDATA[Today, I spent my entire evening working with AppFuse. Really what my goals were: Deploy AppFuse to my local Tomcat Application Server and then deploy AppFuse on my hosting account. So the good news is &#8211; I made it Even though it&#8217;s running and the site is live but it&#8217;s not 100% complete (will do [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jsinghfoss.wordpress.com&amp;blog=5288377&amp;post=510&amp;subd=jsinghfoss&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today, I spent my entire evening working with AppFuse. Really what my goals were: Deploy AppFuse to my local Tomcat Application Server and then deploy AppFuse on my hosting account. So the good news is &#8211; I made it <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Even though it&#8217;s running and the site is live but it&#8217;s not 100% complete (will do the other half later this week). I have noticed that there are not much resources available online for AppFuse deployment. So, I will post my complete work on this topic very soon. Stay tune!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jsinghfoss.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jsinghfoss.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jsinghfoss.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jsinghfoss.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jsinghfoss.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jsinghfoss.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jsinghfoss.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jsinghfoss.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jsinghfoss.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jsinghfoss.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jsinghfoss.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jsinghfoss.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jsinghfoss.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jsinghfoss.wordpress.com/510/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jsinghfoss.wordpress.com&amp;blog=5288377&amp;post=510&amp;subd=jsinghfoss&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jsinghfoss.wordpress.com/2010/07/27/appfuse-deployment-private-tomcat/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/84fed36429de1948901f9a2be656e434?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jatinder Singh</media:title>
		</media:content>
	</item>
		<item>
		<title>AppFuse on Eclipse &#8211; Solved mvn eclipse:eclipse</title>
		<link>http://jsinghfoss.wordpress.com/2010/07/25/appfuse-on-eclipse-solved-mvn-eclipseeclipse/</link>
		<comments>http://jsinghfoss.wordpress.com/2010/07/25/appfuse-on-eclipse-solved-mvn-eclipseeclipse/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 20:15:04 +0000</pubDate>
		<dc:creator>jsinghfoss</dc:creator>
				<category><![CDATA[AppFuse]]></category>

		<guid isPermaLink="false">http://jsinghfoss.wordpress.com/?p=506</guid>
		<description><![CDATA[If you want to develop AppFuse on Eclipse, you will need to transform AppFuse project into Eclipse project. If you are following the AppFuse documentation, it will ask you to run &#8220;mvn eclipse:eclipse&#8221; in your project (where the pom.xml file is located). On running the above command, you will get a build error. And the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jsinghfoss.wordpress.com&amp;blog=5288377&amp;post=506&amp;subd=jsinghfoss&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you want to develop AppFuse on Eclipse, you will need to transform AppFuse project into Eclipse project. If you are following the AppFuse documentation, it will ask you to run &#8220;mvn eclipse:eclipse&#8221; in your project (where the pom.xml file is located). On running the above command, you will get a build error. And the way to solve this issue is to run the latest Eclipse plugin. Instead of &#8220;mvn eclipse:eclipse&#8221; use the below command:</p>
<p style="text-align:center;">mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse</p>
<p style="text-align:left;">Hope this will help others.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jsinghfoss.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jsinghfoss.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jsinghfoss.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jsinghfoss.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jsinghfoss.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jsinghfoss.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jsinghfoss.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jsinghfoss.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jsinghfoss.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jsinghfoss.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jsinghfoss.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jsinghfoss.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jsinghfoss.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jsinghfoss.wordpress.com/506/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jsinghfoss.wordpress.com&amp;blog=5288377&amp;post=506&amp;subd=jsinghfoss&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jsinghfoss.wordpress.com/2010/07/25/appfuse-on-eclipse-solved-mvn-eclipseeclipse/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/84fed36429de1948901f9a2be656e434?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jatinder Singh</media:title>
		</media:content>
	</item>
		<item>
		<title>AppFuse &#8211; Maven Repository (?/.m2/repository/) Where?</title>
		<link>http://jsinghfoss.wordpress.com/2010/06/26/appfuse-maven-repository-m2repository-where/</link>
		<comments>http://jsinghfoss.wordpress.com/2010/06/26/appfuse-maven-repository-m2repository-where/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 23:17:02 +0000</pubDate>
		<dc:creator>jsinghfoss</dc:creator>
				<category><![CDATA[AppFuse]]></category>

		<guid isPermaLink="false">http://jsinghfoss.wordpress.com/?p=500</guid>
		<description><![CDATA[As I said in my previous post that I am experimenting few things with AppFuse. I had few issues with AppFuse set-up on Eclipse. Thanks to this (Sonatype) web page which helped me to locate my Maven repository on Windows. On Windows Vista it&#8217;s &#8211; C:\Users\USER-NAME\.m2\repository So now I finally have AppFuse environment set-up on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jsinghfoss.wordpress.com&amp;blog=5288377&amp;post=500&amp;subd=jsinghfoss&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As I said in my previous post that I am experimenting few things with AppFuse. I had few issues with AppFuse set-up on Eclipse. Thanks to <a href="http://www.sonatype.com/books/mvnex-book/reference/simple-project-section-simple-repo.html" target="_blank">this (Sonatype)</a> web page which helped me to locate my Maven repository on Windows. On Windows Vista it&#8217;s &#8211; C:\Users\USER-NAME\.m2\repository</p>
<p>So now I finally have AppFuse environment set-up on my local computer. If you need help with AppFuse, leave a comment.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jsinghfoss.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jsinghfoss.wordpress.com/500/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jsinghfoss.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jsinghfoss.wordpress.com/500/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jsinghfoss.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jsinghfoss.wordpress.com/500/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jsinghfoss.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jsinghfoss.wordpress.com/500/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jsinghfoss.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jsinghfoss.wordpress.com/500/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jsinghfoss.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jsinghfoss.wordpress.com/500/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jsinghfoss.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jsinghfoss.wordpress.com/500/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jsinghfoss.wordpress.com&amp;blog=5288377&amp;post=500&amp;subd=jsinghfoss&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jsinghfoss.wordpress.com/2010/06/26/appfuse-maven-repository-m2repository-where/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/84fed36429de1948901f9a2be656e434?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jatinder Singh</media:title>
		</media:content>
	</item>
		<item>
		<title>AppFuse Project</title>
		<link>http://jsinghfoss.wordpress.com/2010/06/21/appfuse-project/</link>
		<comments>http://jsinghfoss.wordpress.com/2010/06/21/appfuse-project/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 15:29:09 +0000</pubDate>
		<dc:creator>jsinghfoss</dc:creator>
				<category><![CDATA[AppFuse]]></category>

		<guid isPermaLink="false">http://jsinghfoss.wordpress.com/?p=494</guid>
		<description><![CDATA[Lately, I have been working on a project where I have decided to use AppFuse Software and build on top of it. I had few issues while trying to get it to work but finally I had it working. I am still in the process of testing. Over the next few days, I will be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jsinghfoss.wordpress.com&amp;blog=5288377&amp;post=494&amp;subd=jsinghfoss&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Lately, I have been working on a project where I have decided to use AppFuse Software and build on top of it. I had few issues while trying to get it to work but finally I had it working. I am still in the process of testing. Over the next few days, I will be testing its Security functionality and modularity.</p>
<p>BTW&#8230;I tried to integrate AppFuse 2.1.0-M1 with Eclipse but it didn&#8217;t work.  I have a feeling that I am missing something and will give it a another try.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jsinghfoss.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jsinghfoss.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jsinghfoss.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jsinghfoss.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jsinghfoss.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jsinghfoss.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jsinghfoss.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jsinghfoss.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jsinghfoss.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jsinghfoss.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jsinghfoss.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jsinghfoss.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jsinghfoss.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jsinghfoss.wordpress.com/494/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jsinghfoss.wordpress.com&amp;blog=5288377&amp;post=494&amp;subd=jsinghfoss&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jsinghfoss.wordpress.com/2010/06/21/appfuse-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/84fed36429de1948901f9a2be656e434?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jatinder Singh</media:title>
		</media:content>
	</item>
	</channel>
</rss>
