<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Shaun Abram &#187; spring</title>
	<atom:link href="http://www.shaunabram.com/tag/spring/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shaunabram.com</link>
	<description>Java and Technology weblog</description>
	<lastBuildDate>Thu, 09 Feb 2012 18:06:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Spring MVC Hello World</title>
		<link>http://www.shaunabram.com/springmvchelloworld/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=springmvchelloworld</link>
		<comments>http://www.shaunabram.com/springmvchelloworld/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 05:07:03 +0000</pubDate>
		<dc:creator>sabram</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Products]]></category>
		<category><![CDATA[helloworld]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[servlet]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[springmvc]]></category>
		<category><![CDATA[webapp]]></category>
		<category><![CDATA[webframework]]></category>

		<guid isPermaLink="false">http://www.shaunabram.com/?p=1376</guid>
		<description><![CDATA[There is a good Getting Started with Spring MVC blog post over on the Spring team blog. I have created several Spring MVC projects for both work and play, and am attaching my own simple version of the HelloWorld example here, based on the Spring blog example. Find my maven ready source here. Like my [...]]]></description>
			<content:encoded><![CDATA[<p>There is a good <a href="http://blog.springsource.com/2011/01/04/green-beans-getting-started-with-spring-mvc/">Getting Started with Spring MVC</a> blog post over on the Spring team <a href="http://blog.springsource.com/">blog</a>.</p>
<p>I have created several <a href="http://static.springsource.org/spring/docs/current/spring-framework-reference/html/mvc.html">Spring MVC</a> projects for both work and play, and am attaching my own simple version of the HelloWorld example here, based on the Spring blog example.<br />
Find <a href="http://www.shaunabram.com/attachments/SpringMVCHelloWorld.zip">my maven ready source here</a>.<br />
Like my previous <a href="http://www.shaunabram.com/helloworld-jsp-servlet/">JSP/Servlet example</a>, I find these templates useful for getting prototypes up and running.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaunabram.com/springmvchelloworld/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spring Enterprise Recipes</title>
		<link>http://www.shaunabram.com/spring-enterprise-recipes/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=spring-enterprise-recipes</link>
		<comments>http://www.shaunabram.com/spring-enterprise-recipes/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 18:57:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Products]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[spring]]></category>

		<guid isPermaLink="false">http://www.shaunabram.com/?p=737</guid>
		<description><![CDATA[I recently found out that this book has just been published: &#8220;Spring Enterprise Recipes: A Problem-Solution Approach&#8221; It is written by Josh Long and Gary Mak. I have heard Josh speak at several conferences, followed his articles on TheServerSide (as well as on his blog) and recently got to hang out with him at the [...]]]></description>
			<content:encoded><![CDATA[<p>I recently found out that this book has just been published:<br />
&#8220;<a href="http://www.amazon.com/Spring-Enterprise-Recipes-Problem-Solution-Approach/dp/1430224975/ref=sr_1_1?ie=UTF8&#038;s=books&#038;qid=1259951733&#038;sr=8-1">Spring Enterprise Recipes: A Problem-Solution Approach</a>&#8221;<br />
It is written by Josh Long and Gary Mak. I have heard Josh speak at several conferences, followed his articles on TheServerSide (as well as on his <a href="http://www.joshlong.com">blog</a>) and recently got to hang out with him at the SoCal Code Camp. He is very knowledgeable about Spring and enterprise integration and since Gary is already an author of one of the leading Spring books (<a href="http://www.amazon.com/Spring-Recipes-Problem-Solution-Approach-Professionals/dp/1590599799/ref=sr_1_2?ie=UTF8&#038;s=books&#038;qid=1259951733&#038;sr=8-2">Spring recipes</a>), this should be a great book. I have just ordered my copy and will try to post a review when I am done with it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaunabram.com/spring-enterprise-recipes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8216;An Introduction to Spring&#8217; at LA Code Camp</title>
		<link>http://www.shaunabram.com/intro-to-spring-lacodecamp/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=intro-to-spring-lacodecamp</link>
		<comments>http://www.shaunabram.com/intro-to-spring-lacodecamp/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 01:12:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[codecamp]]></category>
		<category><![CDATA[spring]]></category>

		<guid isPermaLink="false">http://www.shaunabram.com/?p=727</guid>
		<description><![CDATA[I gave my &#8216;An Introduction to Spring&#8217; talk today at the LA code camp. It went fairly well I think. I had very little time to go through the Spring MVC module at the end, but perhaps I will give that as a separate talk another day. I have posted the presentation slides here.]]></description>
			<content:encoded><![CDATA[<p>I gave my &#8216;An Introduction to Spring&#8217; talk today at the LA code camp. It went fairly well I think. I had very little time to go through the Spring MVC module at the end, but perhaps I will give that as a separate talk another day.</p>
<p>I have posted the presentation slides <a href="http://www.shaunabram.com/attachments/AnIntroToSpring-LACodeCamp2009.ppt">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaunabram.com/intro-to-spring-lacodecamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speaking at LA Code Camp</title>
		<link>http://www.shaunabram.com/speaking-at-la-code-camp/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=speaking-at-la-code-camp</link>
		<comments>http://www.shaunabram.com/speaking-at-la-code-camp/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 04:37:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[codecamp]]></category>
		<category><![CDATA[spring]]></category>

		<guid isPermaLink="false">http://www.shaunabram.com/?p=717</guid>
		<description><![CDATA[I am very pleased to say I will be speaking at the LA Code Camp this weekend. My topic is An Introduction to Spring. I will try to post a report from the code camp this weekend&#8230; This is the same talk I had planned to present at the Silicon Valley Code Camp, so great [...]]]></description>
			<content:encoded><![CDATA[<p>I am very pleased to say I will be speaking at the <a href="http://www.socalcodecamp.com/">LA Code Camp</a> this weekend. My topic is <a href="http://www.socalcodecamp.com/session.aspx?sid=a3c3ddcf-b78c-489c-9b6d-029cecef1535">An Introduction to Spring</a>. I will try to post a report from the code camp this weekend&#8230;</p>
<p>This is the same talk I had <a href="http://www.shaunabram.com/spring-talk-canceled/">planned</a> to present at the Silicon Valley Code Camp, so great to be finally giving it&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaunabram.com/speaking-at-la-code-camp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Data binding in Spring MVC</title>
		<link>http://www.shaunabram.com/data-binding-in-spring-mvc/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=data-binding-in-spring-mvc</link>
		<comments>http://www.shaunabram.com/data-binding-in-spring-mvc/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 08:35:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Products]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[spring]]></category>

		<guid isPermaLink="false">http://www.shaunabram.com/?p=667</guid>
		<description><![CDATA[Two of the most important tasks carried out by Spring MVC when you submit a form are Data binding and validation. The following article discusses data binding, including the use of custom PropertyEditors, and some of the options available for registering such editors. Most of the information discussed applies to Spring in general, but its [...]]]></description>
			<content:encoded><![CDATA[<p>Two of the most important tasks carried out by Spring MVC when you submit a form are Data binding and validation.<br />
The following article discusses data binding, including the use of custom PropertyEditors, and some of the options available for registering such editors. Most of the information discussed applies to Spring in general, but its application in Spring MVC is my primary interest.</p>
<p>In a future article I would like to discuss validation including the use of custom error messages.</p>
<p>Note that these notes relate to version 2.5.6 of Spring, the latest production code at time of writing, and depend heavily on the corresponding <a href="http://static.springsource.org/spring/docs/2.5.x/reference/">Spring reference docs</a>.</p>
<p><span id="more-667"></span><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-6044065224180784";
/* Midpage banner */
google_ad_slot = "3447137835";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<h2>Data Binding</h2>
<p>Spring MVC allows the use of command objects (aka form backing objects, model attributes, domain model objects &#8211; basically the objects used to transport data between your view and your controller) using just about any type. However, the Servlet API deals with form parameters as Strings. Spring uses a technique called data binding to covert between the String representation and the real underlying type. This enables user input to be bound to the objects you use to process user input. In other words, the values entered by a user in a form can be used to set the property values on a chosen object.<br />
As well as binding the values, Spring includes support for validation and binding result analysis. </p>
<p>The binding functionality is provided by Spring&#8217;s <a href="http://static.springsource.org/spring/docs/2.5.6/api/org/springframework/validation/DataBinder.html">org.springframework.validation.DataBinder</a> class.<br />
And when converting a String to some arbitrary type, DataBinders make use of ProperEditors. PropertyEditors are not Spring specific, but rather part of the <a href="http://java.sun.com/javase/7/docs/api/java/beans/PropertyEditor.html">JavaBeans API</a>.</p>
<h3>Using PropertyEditors</h3>
<p>Spring heavily uses the concept of PropertyEditors to effect the conversion between an Object and a String.<br />
Spring has a number of built-in PropertyEditors to make life easy (for a complete list, see <a href="http://static.springsource.org/spring/docs/2.5.x/reference/validation.html#beans-beans-conversion">here</a>).<br />
If you are using a custom type that Spring is unable to convert to and from a String, you will likely receive a lovely error such as this:</p>
<blockquote><p>org.springframework.web.bind.ServletRequestBindingException: Errors binding onto object &#8216;dependsOnExoticType&#8217;; nested exception is org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors<br />
Field error in object &#8216;dependsOnExoticType&#8217; on field &#8216;type&#8217;: rejected value [test]; codes [typeMismatch.dependsOnExoticType.type,typeMismatch.type,typeMismatch.example.ExoticType,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [dependsOnExoticType.type,type]; arguments []; default message [type]]; default message [Failed to convert property value of type [java.lang.String] to required type [example.ExoticType] for property &#8216;type&#8217;; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [java.lang.String] to required type [example.ExoticType] for property &#8216;type&#8217;: no matching editors or conversion strategy found]</p></blockquote>
<p>The solution is to create your own custom editor.</p>
<h4>Creating a custom property editor</h4>
<p>A custom property editor should be of type java.beans.PropertyEditor. It tells Spring how to convert to a String and back again. As an example, see the ExoticTypeEditor in the Spring reference docs <a href="http://static.springsource.org/spring/docs/2.5.x/reference/validation.html#beans-beans-conversion-customeditor-registration">here</a>. </p>
<p>The question is then how to register the custom editor. </p>
<h4>Registering your custom editor</h4>
<p>There are several ways to ensure you custom editor gets registered.</p>
<h5>1) Put Editor in same package</h5>
<p>The simplest way (by far!) is to put the Editor in the same package as the class it handles. This is because the standard JavaBeans infrastructure will automatically discover PropertyEditor classes (without you having to register them explicitly) if they are in the same package as the class they handle, and have the same name as that class, with&#8217;Editor&#8217; appended;</p>
<p>However, if putting the Editor in the same package as the class it handlers is not possible (If for example, you are using a custom type from a 3rd party library and hence you don&#8217;t have access to the source code), try one of the other options below&#8230;</p>
<h5>2) CustomEditorConfigurer </h5>
<p>Another approach to registering a custom PropertyEditor is to use a special bean factory post-processor called CustomEditorConfigurer.<br />
This is the approach used in the spring reference manual for the &#8216;ExoticType&#8217; example. Again, see<br />
section 5.4.2.1. Registering additional custom PropertyEditors, <a href="http://static.springsource.org/spring/docs/2.5.x/reference/validation.html#beans-beans-conversion-customeditor-registration">here</a>.</p>
<p>The CustomEditorConfigurer is used to register the new PropertyEditor with the ApplicationContext, which will then be able to use it as needed.</p>
<h6>Gotchas</h6>
<p><h7>i) Won&#8217;t work with BeanFactory &#8211; only ApplicationContext</h7><br />
The PropertyEditors defined in the &#8216;customEditorConfigurer&#8217; bean will only be automatically used if you are using an ApplicationContext implementation (i.e. will not work for BeanFactory). This is discussed <a href="http://forum.springsource.org/showthread.php?t=15951">here</a>.<br />
<h7>ii) Only works for ApplicationContext created beans &#8211; not data binding beans such as form objects</h7><br />
This approach only works for beans created by the ApplicationContext. The PropertyEditors that are registered via CustomEditorConfigurer are NOT available for use in the data binding infrastructure (this is discussed <a href="http://forum.springsource.org/showthread.php?t=30759">here</a> and <a href="http://jira.springframework.org/browse/SPR-1210">here</a>).<br />
I think this should be made more clear in the spring framework ref docs (although, in fairness, it is covered in the <a href="http://static.springsource.org/spring/docs/3.0.0.M1/javadoc-api/org/springframework/beans/factory/config/CustomEditorConfigurer.html">CustomEditorConfigure javadocs</a>).</p>
<p>
So, if you are using Spring MVC and dealing with form submission, the next option may be better&#8230;</p>
<h5>3) Explicitly register your editor in initBinder</h5>
<p>So, a better approach, as far as form data binding is concerned, is to explicitly register your editor within initBinder() in the relevant Controller. e.g.</p>
<pre>
<code>@Controller
@RequestMapping("/exoticView.htm")
public class TestController {

	//post and get handling methods etc...

	@InitBinder
	protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) {
		binder.registerCustomEditor(ExoticType.class, new ExoticTypeEditor());
	}

}</code>
</pre>
<h5>4) Use a WebBindingInitializer</h5>
<p>If you find yourself using the above approach (registering your customer editor in initBinder) in many controllers, and you use a annotation based controller (Spring 2.5+), then you can use a WebBindingInitializer to register global property editors. </p>
<p>To do this, create a class that implements the WebBindingInitializer interface, for example</p>
<pre>
<code>public class GlobalBindingInitializer implements WebBindingInitializer {

    public void initBinder(WebDataBinder binder, WebRequest request) {
        binder.registerCustomEditor(ExoticType.class, new ExoticTypeEditor());
    }

}</code>
</pre>
<p>Then update your web application context file to contain:</p>
<pre>
<code>&lt;bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"&gt;
    &lt;property name="webBindingInitializer"&gt;
        &lt;bean class="GlobalBindingInitializer"/&gt;
    &lt;/property&gt;
&lt;/bean&gt;</code>
</pre>
<p>I discovered this approach in a posting on <a href="http://stackoverflow.com/about">StackOverflow </a> about <a href="http://stackoverflow.com/questions/1416423/hidden-features-of-spring-framework">hidden features of Spring </a>. It means you can register an editor once and use it anywhere. <strong><em>This is now my preferred way to register custom property editors.</em></strong></p>
<h5>5) Use PropertyEditorRegistrar</h5>
<p>Another mechanism for registering property editors with the Spring container, and the final one in the Spring reference docs, is to create and use a PropertyEditorRegistrar. See section 5.4.2.1.1 <a href="http://static.springsource.org/spring/docs/2.5.x/reference/validation.html#beans-beans-conversion-customeditor-registration">here</a>. The docs say that this is a good approach &#8220;when you need to use the same set of property editors in several different situations&#8221;. I have used this approach successfully in the past, but to be honest, I don&#8217;t quite see the benefits beyond the GlobalBindingInitializer approach above and it seems to require a few more steps. (I also saw some confusing debate on exactly what steps are mandatory <a href="http://jira.springframework.org/browse/SPR-3512?focusedCommentId=28100&#038;page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_28100">here</a>)</p>
<h5>6) BeanInfo</h5>
<p>There is also a BeanInfo mechanism mentioned in the Spring docs which I admit I have never tried &#8211; or fully understood.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaunabram.com/data-binding-in-spring-mvc/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>JavaBeans vs Spring beans vs POJOs</title>
		<link>http://www.shaunabram.com/beans-vs-pojos/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=beans-vs-pojos</link>
		<comments>http://www.shaunabram.com/beans-vs-pojos/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 20:40:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[JavaBeans]]></category>
		<category><![CDATA[POJO]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[Sun]]></category>

		<guid isPermaLink="false">http://www.shaunabram.com/?p=613</guid>
		<description><![CDATA[The terms JavaBeans, &#8220;Spring beans&#8221; and POJOs are in widespread use and this article discusses each and the differences between them. JavaBeans At a basic level, JavaBeans are simply Java classes which adhere to certain coding conventions. For example, classes that Have a public default (no argument) constructor allows access to properties using accessor (getter [...]]]></description>
			<content:encoded><![CDATA[<p>The terms JavaBeans, &#8220;Spring beans&#8221; and POJOs are in widespread use and this article discusses each and the differences between them.</p>
<h2>JavaBeans</h2>
<p>At a basic level, JavaBeans are simply Java classes which adhere to certain coding conventions. For example, classes that</p>
<ol>
<li>Have a public default (no argument) constructor</li>
<li>allows access to properties using accessor (getter and setter) methods</li>
<li>Implement java.io.Serializable</li>
</ol>
<p>More accurately, JavaBeans are classes that adhere to Sun&#8217;s <a href="http://java.sun.com/javase/technologies/desktop/javabeans/docs/spec.html">JavaBeans spec</a>, first published way back in 1996. A JavaBean was defined as a &#8220;software component model&#8221; for Java. The idea was that JavaBeans would be reusable software components that could be manipulated visually in a builder tool and that vendors would create and sell JavaBeans that could be composed together into applications by end users. The three most important features of a Java Bean are </p>
<ol>
<li>the set of properties (named attributes) it exposes</li>
<li>the set of methods it allows other components to call</li>
<li>the set of events it fires (to notify registered listeners of changes)</li>
</ol>
<h2>POJO</h2>
<p>POJO is an acronym for Plain Old Java Object. The term was coined by <a href="http://www.martinfowler.com/bliki/POJO.html">Martin Fowler et. al.</a>, as a &#8216;fancy&#8217; way to describe ordinary Java Objects that do not require a framework to use, nor need to be run in a application server environment. If is often used to distinguish simpler, lightweight Java objects from &#8216;heavyweight&#8217; code like EJBs. The use of these kind of lightweight objects in programming is described in books such as &#8220;<a href="http://www.shaunabram.com/18/">POJOs in Action</a>&#8221; and advocated by frameworks like Spring.</p>
<h2>Spring beans</h2>
<p>A Spring bean is basically an object managed by Spring. More specifically, it is an object that is instantiated, configured and otherwise managed by a <a href="http://en.wikipedia.org/wiki/Spring_Framework">Spring Framework</a> container. Spring beans are defined in a Spring configuration file (or, more recently, by using annotations), instantiated by the Spring container, and then injected into your application.</p>
<p>The reason Spring managed objects are referred to as beans is because in the very early versions, Spring was intended only for use with JavaBeans. That is no longer the case of course: Spring can manage just about any object, even if it doesn&#8217;t have JavaBean type characteristics such as default constructors or mutator methods (getters and setters). None the less, the term &#8216;Spring beans&#8217; has stuck. </p>
<p>Can Spring beans be POJOs? Yes, and they usually are (although they don&#8217;t have to be &#8211; e.g. Spring can be used with &#8216;heavyweight&#8217; Java objects, such as EJBs).<br />
Can Spring beans be JavaBeans? As I have said, yes and again they often are but don&#8217;t have to be.</p>
<h2>Summary</h2>
<p>Although it have been well over 10 years since the JavaBeans spec was first published, it still carries weight and has influence the development of modern frameworks such as Spring. But while Java objects that have default constructor and use accessor methods for private fields may legitimately be called JavaBeans, the whole “reusable software component that can be manipulated visually in a builder tool” concept isn’t particularly popular anymore. </p>
<p>POJOs, however, are everywhere and the a backlash against the complexities for EJBs has resulted in widespread use of ‘lightweight’ Java programming.</p>
<p>Spring beans are objects created and managed by the Spring framework.</p>
<p>None of the 3 terms discussed are mutually exclusive. A Java object can be a JavaBean, a POJO and a Spring bean all at the same time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaunabram.com/beans-vs-pojos/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Spring talk canceled</title>
		<link>http://www.shaunabram.com/spring-talk-canceled/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=spring-talk-canceled</link>
		<comments>http://www.shaunabram.com/spring-talk-canceled/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 18:23:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[codecamp]]></category>
		<category><![CDATA[spring]]></category>

		<guid isPermaLink="false">http://www.shaunabram.com/?p=611</guid>
		<description><![CDATA[With much reluctance, I have had to cancel my planned Spring presentation at Silicon Valley Code Camp this weekend. I have been knocked out with flu all week and I am still hoarse, so giving a one hour talk is, unfortunately, not an option. It is a shame as there was a lot of interest [...]]]></description>
			<content:encoded><![CDATA[<p>With much reluctance, I have had to cancel my <a href="http://www.shaunabram.com/svcc-2009-intro-to-spring/">planned </a>Spring presentation at <a href="http://www.siliconvalley-codecamp.com/">Silicon Valley Code Camp</a> this weekend. I have been knocked out with flu all week and I am still hoarse, so giving a one hour talk is, unfortunately, not an option.<br />
It is a shame as there was a lot of interest in the talk but in this instance can&#8217;t be helped.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaunabram.com/spring-talk-canceled/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeCamp 2009: An Introduction to Spring</title>
		<link>http://www.shaunabram.com/svcc-2009-intro-to-spring/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=svcc-2009-intro-to-spring</link>
		<comments>http://www.shaunabram.com/svcc-2009-intro-to-spring/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 15:42:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[codecamp]]></category>
		<category><![CDATA[spring]]></category>

		<guid isPermaLink="false">http://www.shaunabram.com/?p=368</guid>
		<description><![CDATA[As I posted about earlier, the Silicon Valley Code Camp 2009 is coming up and this year, I am planning on presenting a session on the Spring framework. You can find my session details here: An Introduction to Spring.]]></description>
			<content:encoded><![CDATA[<p>As I <a href="http://www.shaunabram.com/svcc-2009">posted about earlier</a>, the Silicon Valley Code Camp 2009 is coming up and this year, I am planning on presenting a session on the <a href="http://en.wikipedia.org/wiki/Spring_Framework">Spring</a> framework.</p>
<p>You can find my session details here: <a href="http://www.siliconvalley-codecamp.com/Sessions.aspx?id=200">An Introduction to Spring</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaunabram.com/svcc-2009-intro-to-spring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spring and EJB 3 Integration</title>
		<link>http://www.shaunabram.com/spring_ejb3/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=spring_ejb3</link>
		<comments>http://www.shaunabram.com/spring_ejb3/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 04:46:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[EJBs]]></category>
		<category><![CDATA[JUG]]></category>
		<category><![CDATA[spring]]></category>

		<guid isPermaLink="false">http://www.shaunabram.com/?p=318</guid>
		<description><![CDATA[I attended another excellent SF JUG meeting earlier this month. It was a double billing with Talip Ozturk talking about Hazelcast, an opensource clustering and data distribution platform, and Reza Rehman speaking about EJB3 and Spring Integration. Reza is the author of EJB3 in Action and an accomplished speaker whom I had the chance to [...]]]></description>
			<content:encoded><![CDATA[<p>I attended another excellent <a href="http://www.sfjava.org/calendar/10392364/">SF JUG meeting</a> earlier this month. It was a double billing with Talip Ozturk talking about <a href="http://www.hazelcast.com/">Hazelcast</a>, an opensource clustering and data distribution platform, and <a href="http://www.rahmannet.net">Reza Rehman</a> speaking about EJB3 and Spring Integration.</p>
<p>Reza is the author of <a href="http://www.manning.com/panda/">EJB3 in Action</a> and an accomplished speaker whom I had the chance to meet at The Server Side Symposium earlier this year, so I was particularly interested in his talk. </p>
<p>Reza gave some background on EJBs and how they have been completely reinvented as part of the latest (EJB3) release, including using 100% annotations (no xml) and making heavy use intelligent defaulting. He also talked about how Spring became popular as an alternative to the heavyweigth approach of the older EJB releases and has thrived through its focus on integration with standards like JPA, JMS, JDBC and JAX-WS.</p>
<p>He then went on to his main point, which was that EJB3 and Spring can now be viewed as complimentary, rather than competing, technologies and he went on to back this up by discussing the integration strategies that can be used, including</p>
<ul>
<li>Embedding Spring inside a Java EE app server</li>
<li>Embedding an EJB3 embeddable container withing Tomcat with Spring</li>
<li>Enabling Spring @Autowired annotation in EJBs via Interceptors</li>
<li>Using EJB3 natively inside Spring using <a href="http://www.springsource.com/pitchfork">Spring Pitchfork</a></li>
</ul>
<p>Reza finished by reiterating the benefits of using Spring and EJBs together to increase ease of coding and vendor neutrality.</p>
<p>Overall, I thought it was an insightful presentation from Reza. I had studied EJBs back in the v2 release as part of the my SCEA certification, and have used Spring in several projects, but this was the first time I had a chance to hear how they can be used together. </p>
<p>I have made Reza&#8217;s presentation notes available <a href="http://www.shaunabram.com/jug/spring_ejb3_integration.pdf">here</a>, as well as his demo source code available <a href="http://www.shaunabram.com/jug/spring-ejb3-integration-demo.zip">here</a>. You can also follow him on his web site and blog at: <a href="http://www.rahmannet.net">www.rahmannet.net</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaunabram.com/spring_ejb3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TheServerSide Java Symposium &#8211; Day 2</title>
		<link>http://www.shaunabram.com/tss2009_day2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tss2009_day2</link>
		<comments>http://www.shaunabram.com/tss2009_day2/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 20:26:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Products]]></category>
		<category><![CDATA[groovy]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[theserverside]]></category>
		<category><![CDATA[tss]]></category>

		<guid isPermaLink="false">http://www.shaunabram.com/?p=268</guid>
		<description><![CDATA[Day 2 at TSS Java Symposium. The highlights of the second day at TSSJS2009 were a couple of interesting talks from Rod Johnson (Mr Spring) and a talk on Groovy from Scott Davis (Groovy.com). I have included links to some of my (limited) notes below, which includes links to the actual presentation slides (PDFs) where [...]]]></description>
			<content:encoded><![CDATA[<p>Day 2 at TSS Java Symposium.</p>
<p>The highlights of the second day at TSSJS2009 were a couple of interesting talks from Rod Johnson (Mr Spring) and a talk on Groovy from Scott Davis (Groovy.com).</p>
<p>I have included links to some of my (limited) notes below, which includes links to the actual presentation slides (PDFs) where available.</p>
<p><a href="http://www.shaunabram.com/tss2009-spring-keynote">Keynote: How Spring Fits into the Java Landscape</a> &#8211; Rod Johnson</p>
<p><a href="http://www.shaunabram.com/tss2009-advanced-spring">Spring for the advanced developer</a> &#8211; Rod Johnson</p>
<p><a href="http://www.shaunabram.com/tss2009-groovy">The Amazing Grrovy Weight Loss Plan</a> &#8211; Scott Davis</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaunabram.com/tss2009_day2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

