<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.vitarara.org/cms" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Vita Rara: A Life Uncommon - Java</title>
 <link>http://www.vitarara.org/cms/taxonomy/term/5/0</link>
 <description></description>
 <language>en</language>
<item>
 <title>How I Got Over &quot;import java.util.*;&quot;</title>
 <link>http://www.vitarara.org/cms/node/164</link>
 <description>&lt;p&gt;It&#039;s taken me years, but I finally got over import java.util.*;. First, I don&#039;t use an IDE. I know an IDE could manage my imports, but I&#039;m not an IDE guy. So, for years I&#039;ve managed my imports manually, or given up and done import java.util.* and felt guilty about it.  Well, I&#039;m over that, and I can give Groovy the credit. By default Groovy imports java.util.*. I&#039;ve been using Groovy every day now for about a year and a half and the house is still standing, our code compiles, we haven&#039;t had name conflicts. Things work, and it&#039;s a lot easier.&lt;/p&gt;
&lt;p&gt;I used to worry about name clashes and compilation speed, and other shiboleths spoken of around coder camp fires and in hushed tones. After all everyone &quot;knows&quot; that the * should be avoided. Well, I&#039;m over it, import java.util.* is just fine with me. Now when I start a Java source file I almost always just add java.util.*.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.vitarara.org/cms/node/164&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.vitarara.org/cms/node/164#comment</comments>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/68">Groovy</category>
 <category domain="http://www.vitarara.org/cms/java">Java</category>
 <pubDate>Tue, 11 Mar 2008 14:43:35 -0400</pubDate>
 <dc:creator>Mark</dc:creator>
 <guid isPermaLink="false">164 at http://www.vitarara.org/cms</guid>
</item>
<item>
 <title>Using Dynamic Method Invocation to &quot;Script&quot; Java</title>
 <link>http://www.vitarara.org/cms/using_dynamic_method_invocation_to_script_java</link>
 <description>&lt;p&gt;Although Java isn&#039;t thought of as a dynamic language now a days, what with Ruby and Groovy being all the rage, Java does have support for dynamic features. (See my &lt;a href=&quot;/cms/whats_wrong_with_javas_dynamic_dispatch_and_how_to_fix_it&quot; rel=&quot;nofollow&quot;&gt;previous blog post&lt;/a&gt; on the subject and the solution I came up with.)&lt;/p&gt;
&lt;h2&gt;A Use Case for Dynamic Java&lt;/h2&gt;
&lt;p&gt;Currently I&#039;m wrapping about a hundred EJB 2.1 LocalHome classes in DAO&#039;s, and having them transform local EJB entities into POJO&#039;s. Much of the code is largely boiler plate. Actually it&#039;s mind numbingly boiler plate. Here&#039;s a sample of wrapping a finder:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.vitarara.org/cms/using_dynamic_method_invocation_to_script_java&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.vitarara.org/cms/using_dynamic_method_invocation_to_script_java#comment</comments>
 <category domain="http://www.vitarara.org/cms/java">Java</category>
 <pubDate>Tue, 26 Feb 2008 00:03:56 -0500</pubDate>
 <dc:creator>Mark</dc:creator>
 <guid isPermaLink="false">163 at http://www.vitarara.org/cms</guid>
</item>
<item>
 <title>What&#039;s Wrong with Java&#039;s Dynamic Dispatch or &quot;How I Implemented sendMessage()&quot;</title>
 <link>http://www.vitarara.org/cms/whats_wrong_with_javas_dynamic_dispatch_or_how_i_implemented_sendMessage</link>
 <description>&lt;p&gt;(Related article using this technique to &quot;script&quot; some Java objects: &lt;a href=&quot;http://www.vitarara.org/cms/using_dynamic_method_invocation_to_script_java&quot; rel=&quot;nofollow&quot;&gt;article&lt;/a&gt;.)&lt;/p&gt;
&lt;p&gt;The following code quickly illustrates an issue with the Reflection API&#039;s in the Java language. At run time finding methods on classes requires that the types passed to Class#findMethod() exactly match those found in the method declaration. The JavaDoc and language spec refers to these as the &quot;formal parameter types&quot;.&lt;/p&gt;
&lt;p&gt;The issue is, I have a method that takes an A, and I have an object of B that extends A. If you run the following code it will fail, being unable to find the method.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.vitarara.org/cms/whats_wrong_with_javas_dynamic_dispatch_or_how_i_implemented_sendMessage&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.vitarara.org/cms/whats_wrong_with_javas_dynamic_dispatch_or_how_i_implemented_sendMessage#comment</comments>
 <category domain="http://www.vitarara.org/cms/java">Java</category>
 <pubDate>Mon, 25 Feb 2008 23:33:24 -0500</pubDate>
 <dc:creator>Mark</dc:creator>
 <guid isPermaLink="false">162 at http://www.vitarara.org/cms</guid>
</item>
<item>
 <title>Yes the JVM is a Multi-Language Platform</title>
 <link>http://www.vitarara.org/cms/node/160</link>
 <description>&lt;p&gt;Although talk about multiple languages running on the JVM has grown over the past few years, the reality of it really hit home with me this morning. I turned to one of my employees who has been doing JVM development for me since April of last year. The interesting thing is probably 95% of the JVM work he has done isn&#039;t in Java, it&#039;s in Groovy. Here&#039;s to the multi-language Java platform and a thank you to those developers who are making it a reality.&lt;/p&gt;
</description>
 <comments>http://www.vitarara.org/cms/node/160#comment</comments>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/68">Groovy</category>
 <category domain="http://www.vitarara.org/cms/java">Java</category>
 <pubDate>Thu,  7 Feb 2008 11:52:50 -0500</pubDate>
 <dc:creator>Mark</dc:creator>
 <guid isPermaLink="false">160 at http://www.vitarara.org/cms</guid>
</item>
<item>
 <title>The Future That Has Already Happened</title>
 <link>http://www.vitarara.org/cms/node/153</link>
 <description>&lt;p&gt;January second&#039;s Daily Drucker dealt with the future, but not as most business prognosticators or futurists might. As Drucker states it, &quot;The important thing is to identify the &#039;future that has already happened...&#039;&quot;&lt;/p&gt;
&lt;p&gt;The action point for the day is to identifying those trends in our market that have already happened, write about their longevity and their effect on our life and organization.&lt;/p&gt;
&lt;h2&gt;Software as a Service For the Rest of Us&lt;/h2&gt;
&lt;p&gt;Over the past few years, and particularly in 2007 Software as a Service (Saas) has really broken out and has become a force in the software industry. The first large scale SaaS offering that really broke through to my consciousness was Salesforce.com, then for me came Basecamp from 37signals.com. Salesforce.com represented a high level enterprise offering, with a high level of complexity and expense. Basecamp brought software as a service home to us all.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.vitarara.org/cms/node/153&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.vitarara.org/cms/node/153#comment</comments>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/68">Groovy</category>
 <category domain="http://www.vitarara.org/cms/java">Java</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/85">Management</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/86">Peter Drucker</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/83">Ruby on Rails</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/88">Scala</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/87">Software as a Service</category>
 <pubDate>Fri,  4 Jan 2008 14:59:42 -0500</pubDate>
 <dc:creator>Mark</dc:creator>
 <guid isPermaLink="false">153 at http://www.vitarara.org/cms</guid>
</item>
<item>
 <title>2007: A Retrospective</title>
 <link>http://www.vitarara.org/cms/2007_retrospective</link>
 <description>&lt;h2&gt;Personal Life&lt;/h2&gt;
&lt;p&gt;Sylva and I got married on April 28. It&#039;s been a real whirl wind since then. We are expecting our first child on April 1, 2008. My time with Sylva is special and precious. I have a great partner, and look forward to raising a family together. &lt;/p&gt;
&lt;p&gt;Overall business issues have dominated this year. I doubt that will be that case next year.&lt;/p&gt;
&lt;h2&gt;Business&lt;/h2&gt;
&lt;p&gt;It was a hard business year, but prospects for the future look good.&lt;/p&gt;
&lt;h2&gt;Quadran&lt;/h2&gt;
&lt;p&gt;Quadran has arrived. About 63,000 lines of Groovy, Java and JSP, with some XML files to wire it all together, and it&#039;s up and running. We turned on our first Quadran installation on December 5, 2007. This was the culmination of a process that began with an initial meeting in September of 2004, and the consummation of the development agreement in July of 2006.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.vitarara.org/cms/2007_retrospective&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.vitarara.org/cms/2007_retrospective#comment</comments>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/38">Freemasonry</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/68">Groovy</category>
 <category domain="http://www.vitarara.org/cms/java">Java</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/17">Quadran</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/82">Ruby</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/83">Ruby on Rails</category>
 <pubDate>Sun, 30 Dec 2007 14:51:33 -0500</pubDate>
 <dc:creator>Mark</dc:creator>
 <guid isPermaLink="false">151 at http://www.vitarara.org/cms</guid>
</item>
<item>
 <title>Quadran: Shakedown Run</title>
 <link>http://www.vitarara.org/cms/quadran_shakedown_run</link>
 <description>&lt;p&gt;Today is the first day we have our client&#039;s complete staff using Quadran. It&#039;s a good feeling. This is a day years in the making. We had our first meeting about this project in the fourth quarter of 2004. That&#039;s a long time ago. We started the actual project in July of 2006. Today we have everyone in the business running on Quadran, and using their old system in parallel. There are issues, but nothing fundamental, no burning houses, or staff jumping off the ship. Overall it has been a calm deliberate test.&lt;/p&gt;
&lt;p&gt;We have created more automated test cases for this project that any other project I have ever worked on. In the early going I opted for Struts 2, POJO service beans, and JPA, because they were testable. I think this has paid off pretty well, because it&#039;s quiet here. I&#039;m not hearing screaming and gnashing of teeth. We&#039;ll see what the rest of the day brings.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.vitarara.org/cms/quadran_shakedown_run&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.vitarara.org/cms/quadran_shakedown_run#comment</comments>
 <category domain="http://www.vitarara.org/cms/java">Java</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/7">Programming</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/17">Quadran</category>
 <pubDate>Tue, 20 Nov 2007 16:26:10 -0500</pubDate>
 <dc:creator>Mark</dc:creator>
 <guid isPermaLink="false">150 at http://www.vitarara.org/cms</guid>
</item>
<item>
 <title>Replacement Systems are Really Hard</title>
 <link>http://www.vitarara.org/cms/node/148</link>
 <description>&lt;p&gt;Create a list of the hardest things to accomplish in software development and I&#039;m sure near, if not at the top of the list, will be replacing an existing system. Especially a system that runs the lion&#039;s share of a business&#039; operations. Especially when you can&#039;t look at the source of the system you&#039;re replacing.&lt;/p&gt;
&lt;p&gt;For the past year I&#039;ve been working on my Quadran project. Quadran is a drop in replacement for a system my client has been using for about five years. Completing Quadran has been just about the hardest things I&#039;ve ever done. It has felt like an IT death march.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.vitarara.org/cms/node/148&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.vitarara.org/cms/node/148#comment</comments>
 <category domain="http://www.vitarara.org/cms/java">Java</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/7">Programming</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/17">Quadran</category>
 <pubDate>Wed, 14 Nov 2007 08:09:24 -0500</pubDate>
 <dc:creator>Mark</dc:creator>
 <guid isPermaLink="false">148 at http://www.vitarara.org/cms</guid>
</item>
<item>
 <title>ApacheCon US 2007: Using Groovy with Struts 2</title>
 <link>http://www.vitarara.org/cms/apachecon_us_2007_using_groovy_with_struts_2</link>
 <description>&lt;p&gt;I received an email from ApacheCon today. They have accepted my Using Groovy with Struts 2 training session.&lt;/p&gt;
&lt;p class=&quot;vrBlockQuote&quot;&gt;
Using Groovy with Struts 2: A hands on half day training session. Learn how to use Groovy with Struts 2. Topics covered will include: Integrating Groovy into the Struts 2 Maven archetype; implementing actions, and service beans in Groovy; using Spring to wire Groovy service beans and action classes; using dynamic Groovy actions that do not require a server restart; writing Data Access Objects in Groovy and using Spring based transaction support with Java Persistence API (JPA).
&lt;/p&gt;
&lt;p&gt;I don&#039;t have scheduling information yet, but I believe it will either be on November 12 or 13. Stay tuned for more information.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.vitarara.org/cms/apachecon_us_2007_using_groovy_with_struts_2&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.vitarara.org/cms/apachecon_us_2007_using_groovy_with_struts_2#comment</comments>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/75">ApacheCon</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/68">Groovy</category>
 <category domain="http://www.vitarara.org/cms/java">Java</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/7">Programming</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/57">Struts 2</category>
 <pubDate>Tue, 22 May 2007 17:11:35 -0400</pubDate>
 <dc:creator>Mark</dc:creator>
 <guid isPermaLink="false">124 at http://www.vitarara.org/cms</guid>
</item>
<item>
 <title>Creating a Login Interceptor in Struts 2</title>
 <link>http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor</link>
 <description>&lt;p&gt;Controlling access to web resources with a a login process is a common use-case. Implementing this using an interceptor in Struts 2 is very straight forward. &lt;/p&gt;
&lt;p&gt;The parts of the solution:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;An interceptor class,&lt;/li&gt;
&lt;li&gt;An interceptor definition in our struts.xml file,&lt;/li&gt;
&lt;li&gt;An interceptor stack that uses our interceptor in our struts.xml file,&lt;/li&gt;
&lt;li&gt;A global result in our struts.xml file,&lt;/li&gt;
&lt;li&gt;A JSP page to accept the username and password,&lt;/li&gt;
&lt;li&gt;A service bean to process our user&#039;s login attempt,&lt;/li&gt;
&lt;li&gt;A way to wire our service bean to our interceptor.&lt;/li&gt;
&lt;p&gt;&lt;a href=&quot;http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor#comment</comments>
 <category domain="http://www.vitarara.org/cms/java">Java</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/7">Programming</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/57">Struts 2</category>
 <enclosure url="http://www.vitarara.org/cms/files/LoginInterceptor.zip" length="3388" type="application/zip" />
 <pubDate>Wed, 18 Apr 2007 15:29:51 -0400</pubDate>
 <dc:creator>Mark</dc:creator>
 <guid isPermaLink="false">121 at http://www.vitarara.org/cms</guid>
</item>
</channel>
</rss>
