<?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>f3yourmind &#187; Spring</title>
	<atom:link href="http://aslamkhan.net/tag/spring/feed/" rel="self" type="application/rss+xml" />
	<link>http://aslamkhan.net</link>
	<description>"There are no limits. There are only plateaus, and you must not stay there, you must go beyond them." - Bruce Lee</description>
	<lastBuildDate>Wed, 01 Sep 2010 22:25:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Øredev Presentations</title>
		<link>http://aslamkhan.net/events/oredev-presentations/</link>
		<comments>http://aslamkhan.net/events/oredev-presentations/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 21:30:43 +0000</pubDate>
		<dc:creator>Aslam</dc:creator>
				<category><![CDATA[Architecture and Development]]></category>
		<category><![CDATA[Conferences, Speaking Gigs, etc.]]></category>
		<category><![CDATA[Agile]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[Aspects]]></category>
		<category><![CDATA[BDD]]></category>
		<category><![CDATA[DDD]]></category>
		<category><![CDATA[factor10]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[oredev]]></category>
		<category><![CDATA[Patterns]]></category>
		<category><![CDATA[Spring]]></category>
		<category><![CDATA[TDD]]></category>

		<guid isPermaLink="false">http://aslamkhan.net/?p=62</guid>
		<description><![CDATA[My presentations from Oredev are finally available.  After working through almost all the export options on Keynote, I have settled on QuickTime as the distro format.  The &#8220;flying code&#8221; in the aspects presentation worked out best with QuickTime.  Note that it&#8217;s not a continuous playback and you have to click-through each frame.

Solving Domain Problems with [...]]]></description>
			<content:encoded><![CDATA[<p>My presentations from Oredev are finally available.  After working through almost all the export options on Keynote, I have settled on QuickTime as the distro format.  The &#8220;flying code&#8221; in the aspects presentation worked out best with QuickTime.  Note that it&#8217;s not a continuous playback and you have to click-through each frame.</p>
<ul>
<li><strong>Solving Domain Problems with Aspects </strong>has a couple of slides with repeated transitions (courtesy of the export <img src='http://aslamkhan.net/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  ).  This one has the <em>flying code</em>, as <a title="Claudio Perrone's Blog" href="http://www.claudioperrone.com">Claudio Perrone</a> calls it!  And it is the presentation that lead to the chat with <a href="http://ayende.com">Ayende Rahien</a>.  He has done something similar in C# <a href="http://ayende.com/Blog/archive/2008/11/23/aspects-of-domain-design.aspx">here</a>. <span style="color: #808080;">- 29.1MB @ <span style="color: #999999;"><a href="http://aslamkhan.net/wp-content/uploads/2008/11/SolvingDomainProblemsWithAspects.mov">http://aslamkhan.net/wp-content/uploads/2008/11/SolvingDomainProblemsWithAspects.mov</a></span> </span></li>
</ul>
<ul>
<li><strong>Managing Diversity in Agile Teams</strong> was inspired by Claudio&#8217;s presentation style.  Highly visual with minimal text.  It&#8217;s about story telling, movie script style and not about bullet point presentations.  Thanks, Claudio! <span style="color: #808080;">- 16.6MB @ </span><span style="color: #808080;"><span style="color: #999999;"><a href="http://aslamkhan.net/wp-content/uploads/2008/11/ManagingDiversityInAgileTeams.mov">http://aslamkhan.net/wp-content/uploads/2008/11/ManagingDiversityInAgileTeams.mov</a></span></span><a href="http://aslamkhan.net/wp-content/uploads/2008/11/ManagingDiversityInAgileTeams.mov"></a></li>
</ul>
<ul>
<li><strong>Bootstrapping your SOA Project</strong> has the slides for the workshop that I ran.  It&#8217;s a mixture of traditional and visual.  The traditional is used purely for reference / take-home material. <span style="color: #808080;">- 13.5MB @ </span><span style="color: #808080;"><span style="color: #999999;"><a href="http://aslamkhan.net/wp-content/uploads/2008/11/BootstrappingYourSOAProject.mov">http://aslamkhan.net/wp-content/uploads/2008/11/BootstrappingYourSOAProject.mov</a></span></span></li>
</ul>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Faslamkhan.net%2Fevents%2Foredev-presentations%2F&amp;linkname=%C3%98redev%20Presentations"><img src="http://aslamkhan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://aslamkhan.net/events/oredev-presentations/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
<enclosure url="http://aslamkhan.net/wp-content/uploads/2008/11/SolvingDomainProblemsWithAspects.mov" length="30585840" type="video/quicktime" />
<enclosure url="http://aslamkhan.net/wp-content/uploads/2008/11/ManagingDiversityInAgileTeams.mov" length="17409202" type="video/quicktime" />
<enclosure url="http://aslamkhan.net/wp-content/uploads/2008/11/BootstrappingYourSOAProject.mov" length="14184983" type="video/quicktime" />
		</item>
		<item>
		<title>OSGi Cookbook: #1. A Simple Bean</title>
		<link>http://aslamkhan.net/software-development/osgi-cookbook-1-a-simple-bean/</link>
		<comments>http://aslamkhan.net/software-development/osgi-cookbook-1-a-simple-bean/#comments</comments>
		<pubDate>Thu, 17 Jan 2008 12:04:13 +0000</pubDate>
		<dc:creator>Aslam</dc:creator>
				<category><![CDATA[Architecture and Development]]></category>
		<category><![CDATA[OSGi]]></category>
		<category><![CDATA[Spring]]></category>

		<guid isPermaLink="false">http://aslamkhan.net/osgi/osgi-cookbook-1-a-simple-bean/</guid>
		<description><![CDATA[This is something that I have been meaning to do for some time now, i.e. an OSGi cookbook.  So this is the first in a series of recipes, with each one building on the next in usefulness and complexity.  This recipe is really for newbies, just to take some of the mystery out [...]]]></description>
			<content:encoded><![CDATA[<p>This is something that I have been meaning to do for some time now, i.e. an OSGi cookbook.  So this is the first in a series of recipes, with each one building on the next in usefulness and complexity.  This recipe is really for newbies, just to take some of the mystery out of <a href="http://www.osgi.org">OSGi</a> and to introduce some of the emerging tools for OSGi development.  If you have never done anything with OSGi before, then I recommend that you work through <a href="http://neilbartlett.name/blog">Neil Bartlett&#8217;s</a> excellent series on getting started with OSGi.<br />
<h2>Getting ready</h2>
<p> Ensure that you have <a href="http://maven.apache.org/" title="Maven - Welcome to Maven">maven</a> andthe <a href="http://www.ops4j.org/projects/pax/construct/" title="Pax Construct - Quickstart">pax-construct</a> scripts installed.The installation is straight forward, just follow the instructions on their respective web sites.<br />
<h2><a name="ASimpleBean" title="ASimpleBean"></a>#1. A Simple Bean</h2>
<p>This recipe creates a service out of a simple POJO.  The service doesn&#8217;t do anything useful, but the recipe is a simple way to getyour development environment up and running.
<ol>
<li>Create a project using pax-construct.The pax-construct scripts uses maven and the <a href="http://www.ops4j.org/projects/pax/construct/maven-pax-plugin/index.html" title="maven-pax-plugin - Introduction">maven-pax-plugin</a>.Using the familiar maven terminology of groupId and artifactId, create the project with a groupId of <code>net.aslamkhan</code> and artifactId of <code>osgi-simplebean</code>.
<pre><span style="color: blue">/&gt; pax-create-project -g net.aslamkhan -a osgi-simplebean</span></pre>
<pre>...</pre>
<pre>[INFO] Archetype created in dir: /Users/aslam/projects/osgi/osgi-simplebean</pre>
<pre>[INFO] ------------------------------------------------------------------------</pre>
<pre>[INFO] BUILD SUCCESSFUL</pre>
<pre>[INFO] ------------------------------------------------------------------------</pre>
</li>
<li>Have a look at what&#8217;s in the project and make sure that it does build cleanly (well, there&#8217;s actually nothing worthwhile to build here, but let&#8217;s make sure that everything is still ok).
<pre><span style="color: blue">/&gt; cd osgi-simplebean</span>		<span style="color: blue"></span></pre>
<pre><span style="color: blue">/&gt; ls -l</span></pre>
<pre>-rw-r--r--   1 aslam  aslam  2354 Jan  9 10:26 pom.xml</pre>
<pre>drwxr-xr-x   5 aslam  aslam   170 Jan  9 10:26 poms</pre>
<pre>drwxr-xr-x   3 aslam  aslam   102 Jan  9 10:26 provision			<span style="color: blue"></span></pre>
<pre><span style="color: blue">/&gt; mvn package</span></pre>
<pre>...</pre>
<pre>[INFO] ------------------------------------------------------------------------</pre>
<pre>[INFO] Reactor Summary:</pre>
<pre>[INFO] ------------------------------------------------------------------------</pre>
<pre>[INFO] net.aslamkhan.osgi-simplebean (OSGi project) .......... SUCCESS [1.689s]</pre>
<pre>[INFO] osgi-simplebean - plugin configuration ................ SUCCESS [0.004s]</pre>
<pre>[INFO] osgi-simplebean - wrapper instructions................. SUCCESS [32.144s]</pre>
<pre>[INFO] osgi-simplebean - bundle instructions ................. SUCCESS [0.003s]</pre>
<pre>[INFO] osgi-simplebean - imported bundles .................... SUCCESS [0.002s]</pre>
<pre>...</pre>
</li>
<li> 			We now need to add in the dependencies for <a href="http://www.springframework.org/osgi/">Spring Dynamic Modules for OSGi</a>.  Instead of hand crafting our maven <code>pom.xml</code> file(s), we again use a pax-construct script to add the repositoriesfor the Spring distributions.  From this point onwards, I will not show the output of commands unless it helps to illustrate a point.
<pre><span style="color: blue">/&gt; pax-add-repository -i spring-milestones \</span></pre>
<pre><span style="color: blue">   -u http://s3.amazonaws.com/maven.springframework.org/milestone</span><span style="color: blue"></span></pre>
<pre><span style="color: blue">/&gt; pax-add-repository -i spring-snapshots \</span></pre>
<pre><span style="color: blue">   -u http://static.springframework.org/maven2-snapshots \</span></pre>
<pre><span style="color: blue">   -- -Dsnapshots "-Dreleases=false"</span></pre>
</li>
<li>Import the spring-osgi-extender bundle, and the slf4j logging service bundle.
<pre><span style="color: blue">/&gt; pax-import-bundle -g org.springframework.osgi \</span></pre>
<pre><span style="color: blue">   -a spring-osgi-extender -v 1.0-rc1 \</span></pre>
<pre><span style="color: blue">   -- -DwidenScope -DimportTransitive</span></pre>
<p>If you look at the contents of the <code>provision/pom.xml</code> file, you will see a bunch of dependencies that have been pulled inthe moment we imported the spring-osgi-extender bundle.
<pre>&lt;dependency&gt;</pre>
<pre><span class="Apple-tab-span" style="white-space: pre">	</span>&lt;groupId&gt;org.springframework.osgi&lt;/groupId&gt;</pre>
<pre><span class="Apple-tab-span" style="white-space: pre">	</span>&lt;artifactId&gt;spring-osgi-extender&lt;/artifactId&gt;</pre>
<pre><span class="Apple-tab-span" style="white-space: pre">	</span>&lt;version&gt;1.0-rc1&lt;/version&gt;</pre>
<pre><span class="Apple-tab-span" style="white-space: pre">	</span>&lt;scope&gt;provided&lt;/scope&gt;</pre>
<pre>&lt;/dependency&gt;</pre>
<pre>...</pre>
</li>
<li> 		Now that we have all the infrastructure things sorted out, we can start cooking.  The quickest way to get cooking is to usethe pax-construct <code>pax-create-bundle</code> script.  In this instance, we will create a sample bean with the necessaryboilerplate files needed for Spring Dynamic Modules. 
<pre><span style="color: blue">/&gt; pax-create-bundle -p org.example.bean \</span></pre>
<pre><span style="color: blue">   -- -Dspring -Djunit</span></pre>
<p>Notice that another directory <code>org.example.bean</code> has been created.  Furthermore, this maven module has been added to the root (i.e. parent) <code>./pom.xml</code> file.  Also conveniently created, is asample bean and associated unit tests in <code>org.example.bean/src</code> directory.Edit the <code>org.example.bean/src/main/resources/META-INF/spring/bundle-context-osgi.xml</code> file to contain the following.
<pre>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</pre>
<pre>  &lt;beans xmlns="http://www.springframework.org/schema/beans"			  </pre>
<pre>    ...</pre>
<pre>    xmlns:osgi="http://www.springframework.org/schema/osgi"</pre>
<pre>    ...&gt;</pre>
<pre><span class="Apple-tab-span" style="white-space: pre">	</span>&lt;osgi:service ref="myExampleBean"&gt;			        </pre>
<pre><span style="white-space: pre" class="Apple-tab-span">	</span>  &lt;osgi:interfaces&gt;			            </pre>
<pre><span style="white-space: pre" class="Apple-tab-span">	</span>    &lt;value&gt;org.example.bean.ExampleBean&lt;/value&gt;			        </pre>
<pre><span style="white-space: pre" class="Apple-tab-span">	</span>  &lt;/osgi:interfaces&gt;			    </pre>
<pre><span style="white-space: pre" class="Apple-tab-span">	</span>&lt;/osgi:service&gt;</pre>
<pre>&lt;/beans&gt;</pre>
</li>
<li> 			We should be able to build this and fire it up in the <a href="http://cwiki.apache.org/FELIX/index.html" title="Apache Felix - Index">Apache Felix</a> OSGi implementation.  But wait!  We have not downloaded, nor installed Felix.  Not to worry, maven-pax-plugin will download Felix and fire it up for you, allpart of the <code>pax:provision</code> goal.
<pre><span style="color: blue">/&gt; mvn clean install pax:provision</span></pre>
<pre><span style="color: blue">...</span> properties (org.springframework.context.service.name=org.example.bean)</pre>
<pre>-&gt;</pre>
<p>Let&#8217;s check if our org.example.bean bundle is installed and active.  From the Felix console, enter the following.Also notice that the spring-osgi-extender bundle and spring 2.5 jars are now available as bundles as well.
<pre><span style="color: blue">-&gt; ps</span></pre>
<pre>START LEVEL 6			   ID   State         Level  Name</pre>
<pre>[   0] [Active     ] [    0] System Bundle (1.0.1)</pre>
<pre>[   1] [Active     ] [    1] org.osgi.r4.compendium (1.0.0)</pre>
<pre>[   2] [Active     ] [    1] Apache Felix Shell Service (1.0.0)</pre>
<pre>[   3] [Active     ] [    1] Apache Felix Shell TUI (1.0.0)</pre>
<pre>[   4] [Active     ] [    5] spring-osgi-extender (1.0.0.rc1)</pre>
<pre>[   5] [Active     ] [    5] jcl104-over-slf4j (1.4.3)</pre>
<pre>[   6] [Active     ] [    5] slf4j-api (1.4.3)</pre>
<pre>[   7] [Active     ] [    5] spring-osgi-core (1.0.0.rc1)</pre>
<pre>[   8] [Active     ] [    5] spring-osgi-io (1.0.0.rc1)</pre>
<pre>[   9] [Active     ] [    5] spring-aop (2.5.0)</pre>
<pre>[  10] [Active     ] [    5] spring-beans (2.5.0)</pre>
<pre>[  11] [Active     ] [    5] spring-context (2.5.0)</pre>
<pre>[  12] [Active     ] [    5] spring-core (2.5.0)</pre>
<pre>[  13] [Active     ] [    5] spring-web (2.5.0)</pre>
<pre>[  14] [Active     ] [    5] spring-test (2.5.0)</pre>
<pre>[  15] [Active     ] [    5] aopalliance.osgi (1.0.0.SNAPSHOT)</pre>
<pre>[  16] [Active     ] [    5] backport-util-concurrent.osgi (3.0.0.SNAPSHOT)</pre>
<pre>[  17] [Active     ] [    5] slf4j-simple (1.4.3)			<span style="color: green"></span></pre>
<pre><span style="color: green">[  18] [Active     ] [    5] org.example.bean (1.0.0.SNAPSHOT)</span></pre>
<pre>-&gt;</pre>
<p>Now, check that the service is available.
<pre><span style="color: blue">-&gt; services</span></pre>
<pre>...</pre>
<pre>org.example.bean (18) provides:</pre>
<pre>-------------------------------			<span style="color: green"></span></pre>
<pre><span style="color: green">org.example.bean.ExampleBean</span></pre>
<pre>org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext, </pre>
<pre>...</pre>
</li>
</ol>
<p>That&#8217;s it for this recipe.  Overall, pax makes it really painless to get your OSGi implementation up and running in your developmentenvironment.  Combined with the convenience of spring-dm, we have the start of something really productive.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Faslamkhan.net%2Fsoftware-development%2Fosgi-cookbook-1-a-simple-bean%2F&amp;linkname=OSGi%20Cookbook%3A%20%231.%20A%20Simple%20Bean"><img src="http://aslamkhan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://aslamkhan.net/software-development/osgi-cookbook-1-a-simple-bean/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Looking after your domain model</title>
		<link>http://aslamkhan.net/software-development/looking-after-your-domain-model/</link>
		<comments>http://aslamkhan.net/software-development/looking-after-your-domain-model/#comments</comments>
		<pubDate>Thu, 03 Jan 2008 20:02:01 +0000</pubDate>
		<dc:creator>Aslam</dc:creator>
				<category><![CDATA[Architecture and Development]]></category>
		<category><![CDATA[AOP]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Patterns]]></category>
		<category><![CDATA[Spring]]></category>

		<guid isPermaLink="false">http://aslamkhan.net/software-development/looking-after-your-domain-model/</guid>
		<description><![CDATA[Mats Helander has written an excellent article on how to manage your domain model with some intelligent design trade-offs.  It&#8217;s a lengthy article that even manages to introduce AOP as well.  If you start reading it and wonder where it&#8217;s going, just carry on reading&#8230;it is written in an evolutionary style.  Nice article, Mats! UPDATE: I have written the Java [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.matshelander.com/wordpress/">Mats Helander</a> has written an excellent <a href="http://www.infoq.com/articles/aspects-of-domain-model-mgmt">article</a> on how to manage your domain model with some intelligent design trade-offs.  It&#8217;s a lengthy article that even manages to introduce AOP as well.  If you start reading it and wonder where it&#8217;s going, just carry on reading&#8230;it is written in an evolutionary style.  Nice article, Mats! <span style="font-weight: bold" class="Apple-style-span">UPDATE: </span>I have written the Java equivalent of the listing in Mats&#8217; article and <a href="http://aslamkhan.net/wp-content/uploads/2008/01/mats-dmm.zip" title="mats-dmm.zip">attached</a> it.  The AOP part uses <a href="http://www.springframework.org">SpringFramework</a> 2.5 and AspectJ.  </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Faslamkhan.net%2Fsoftware-development%2Flooking-after-your-domain-model%2F&amp;linkname=Looking%20after%20your%20domain%20model"><img src="http://aslamkhan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://aslamkhan.net/software-development/looking-after-your-domain-model/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Speaking at TSS-JS 2008</title>
		<link>http://aslamkhan.net/events/speaking-at-tss-js-2008/</link>
		<comments>http://aslamkhan.net/events/speaking-at-tss-js-2008/#comments</comments>
		<pubDate>Tue, 18 Dec 2007 17:11:40 +0000</pubDate>
		<dc:creator>Aslam</dc:creator>
				<category><![CDATA[Conferences, Speaking Gigs, etc.]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[OSGi]]></category>
		<category><![CDATA[Spring]]></category>

		<guid isPermaLink="false">http://aslamkhan.net/events/speaking-at-tss-js-2008/</guid>
		<description><![CDATA[I will be speaking at the next TheServerSide Java Symposium in Las Vegas in March 2008.  The presentation will be part of the FrontLine Java track and will cover OSGi and its use in Enterprise Application Development.  This is a more detailed presentation of what I was intending to cover at the *Camp in Cape Town.
]]></description>
			<content:encoded><![CDATA[<p>I will be speaking at the next <a href="http://javasymposium.techtarget.com/lasvegas/index.html" title="TSS-JS 2008 Las Vegas">TheServerSide Java Symposium</a> in Las Vegas in March 2008.  The presentation will be part of the <span style="font-style: italic" class="Apple-style-span">FrontLine Java</span> track and will cover <a href="http://www.osgi.org/" title="OSGi">OSGi</a> and its use in Enterprise Application Development.  This is a more detailed presentation of what I was intending to cover at the <a href="http://wiki.geekdinner.org.za/wiki/Star_Camp/Cape_Town_2007" title="Star-Camp">*Camp</a> in Cape Town.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Faslamkhan.net%2Fevents%2Fspeaking-at-tss-js-2008%2F&amp;linkname=Speaking%20at%20TSS-JS%202008"><img src="http://aslamkhan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://aslamkhan.net/events/speaking-at-tss-js-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
