<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>JavaGeek.org - Tips category</title>
  <link>http://javageek.org/categories/java/tips/</link>
  <description>For the love of Java</description>
  <language>en</language>
  <copyright>Guillermo Castro</copyright>
  <lastBuildDate>Mon, 27 Apr 2009 22:05:14 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  
  <item>
    <title>5 Days of Wicket - Designing the backend</title>
    <link>http://www.mysticcoders.com/blog/2009/03/11/5-days-of-wicket-day-designing-the-backend/</link>
    
      
        <description>
          &lt;p&gt;
&lt;i&gt;&lt;a href=&#034;http://www.mysticcoders.com/blog/2009/03/11/5-days-of-wicket-day-designing-the-backend/&#034;&gt;5 Days of Wicket - Designing the backend&lt;/a&gt;&lt;/i&gt; is an article written by yours truly as part of a series of articles geared towards the better understanding of how to create a web application using &lt;a href=&#034;http://wicket.apache.org/&#034;&gt;Apache Wicket&lt;/a&gt;. Enjoy.
&lt;/p&gt;
&lt;p&gt;
(You can read a short introduction to the series of the articles and links to the rest of them &lt;a href=&#034;http://www.mysticcoders.com/blog/2009/03/09/5-days-of-wicket/&#034;&gt;here&lt;/a&gt;)
&lt;/p&gt;&lt;p&gt;&lt;a href=&#034;http://www.mysticcoders.com/blog/2009/03/11/5-days-of-wicket-day-designing-the-backend/&#034;&gt;Read more...&lt;/a&gt;&lt;/p&gt;
&lt;!--
&lt;rdf:RDF xmlns:rdf=&#034;http://www.w3.org/1999/02/22-rdf-syntax-ns#&#034;
         xmlns:dc=&#034;http://purl.org/dc/elements/1.1/&#034;
         xmlns:trackback=&#034;http://madskills.com/public/xml/rss/module/trackback/&#034;&gt;
&lt;rdf:Description
    rdf:about=&#034;http://javageek.org/2009/03/11/5_days_of_wicket_designing_the_backend.html&#034;
    dc:identifier=&#034;http://javageek.org/2009/03/11/5_days_of_wicket_designing_the_backend.html&#034;
    dc:title=&#034;5 Days of Wicket - Designing the backend&#034;
    trackback:ping=&#034;http://javageek.org/addTrackBack.action?entry=1236788020238&amp;token=4938536727189586814&#034; /&gt;
&lt;/rdf:RDF&gt;
--&gt;
        </description>
      
      
    
    
    
    <category>Wicket</category>
    
    <category>Tips</category>
    
    <comments>http://javageek.org/2009/03/11/5_days_of_wicket_designing_the_backend.html#comments</comments>
    <guid isPermaLink="true">http://www.mysticcoders.com/blog/2009/03/11/5-days-of-wicket-day-designing-the-backend/</guid>
    <pubDate>Wed, 11 Mar 2009 16:13:40 GMT</pubDate>
  </item>
  
  <item>
    <title>In need of an internal IM server? Try Wildfire</title>
    <link>http://javageek.org/2005/12/20/in_need_of_an_internal_im_server_try_wildfire.html</link>
    
      
        <description>
          At work, we use an&amp;nbsp; IM server from Microsoft that uses the Windows Messenger app as a client, and only works for internal communications. Since last week and for reasons unknown, the server is not responding (the person in charge didn&#039;t reply to my emails). As a group of developers separated by geography, IM tools are a must-have. That got me thinkning, isn&#039;t there an easy alternative that we can use? what about a XMPP (&lt;a href=&#034;http://www.jabber.org/&#034;&gt;Jabber&lt;/a&gt;) server installed on a linux development environment, and some jabber-compatible client?&lt;br /&gt;&lt;br /&gt;Well, after a quick search I found a very good XMPP Server, which by chance is made in Java (OK, not by chance. I chose it precisely because of this reason). &lt;a href=&#034;http://www.jivesoftware.org/wildfire/&#034;&gt;Wildfire IM Server&lt;/a&gt; (Formerly Jive Messenger) is an ideal solution for us, since its small, free, and most of all, has support for LDAP-based accounts, which means we can use it with our LDAP-enabled development server (I&#039;ll post later how I set up the server to use LDAP for things like unix shell, svn access, etc.).&lt;br /&gt;&lt;br /&gt;In less than 15 minutes I got Wildfire set up to use MySQL as the Database for storing data, and LDAP for authentication. Instantly every developer that has access to the development environment is now able to connect to the IM server, and it even shows the LDAP groups for the different projects.&lt;br /&gt;&lt;br /&gt;I just saw how &lt;a href=&#034;http://www.javalobby.org/java/forums/t59974.html&#034;&gt;Wildfire was profiled to improve performance&lt;/a&gt;, and I&#039;m sure it will get faster (not to mention better) as they move forward. Now I only need to pitch it to upper management in hopes of replacing the old IM server.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;p&gt;  &lt;/p&gt;
&lt;!--
&lt;rdf:RDF xmlns:rdf=&#034;http://www.w3.org/1999/02/22-rdf-syntax-ns#&#034;
         xmlns:dc=&#034;http://purl.org/dc/elements/1.1/&#034;
         xmlns:trackback=&#034;http://madskills.com/public/xml/rss/module/trackback/&#034;&gt;
&lt;rdf:Description
    rdf:about=&#034;http://javageek.org/2005/12/20/in_need_of_an_internal_im_server_try_wildfire.html&#034;
    dc:identifier=&#034;http://javageek.org/2005/12/20/in_need_of_an_internal_im_server_try_wildfire.html&#034;
    dc:title=&#034;In need of an internal IM server? Try Wildfire&#034;
    trackback:ping=&#034;http://javageek.org/addTrackBack.action?entry=1135123756221&amp;token=-3162927936740540185&#034; /&gt;
&lt;/rdf:RDF&gt;
--&gt;
        </description>
      
      
    
    
    
    <category>Tips</category>
    
    <category>Linux</category>
    
    <comments>http://javageek.org/2005/12/20/in_need_of_an_internal_im_server_try_wildfire.html#comments</comments>
    <guid isPermaLink="true">http://javageek.org/2005/12/20/in_need_of_an_internal_im_server_try_wildfire.html</guid>
    <pubDate>Wed, 21 Dec 2005 00:09:16 GMT</pubDate>
  </item>
  
  <item>
    <title>Accessing a Spring bean from a servlet</title>
    <link>http://javageek.org/2005/09/23/accessing_a_spring_bean_from_a_servlet.html</link>
    
      
        <description>
          I&#039;m using &lt;a href=&#034;http://ajaxtags.sourceforge.net/&#034;&gt;Ajaxtags&lt;/a&gt; to implement an ajax-enabled form with dynamic dropdown fields. In order to access my DAO object (which is a &lt;a href=&#034;http://springframework.org/&#034;&gt;Spring&lt;/a&gt; managed bean)&amp;nbsp; to get the dropdown options, I had to have access to the Application context from a regular Servlet.&lt;br /&gt;&lt;br /&gt;The solution is very simple, but since I had some troubles finding it, I&#039;m adding it here for future reference, and for anyone who&#039;s looking for the same. Basically, you use the &lt;a href=&#034;http://static.springframework.org/spring/docs/1.2.x/api/org/springframework/web/context/support/WebApplicationContextUtils.html&#034;&gt;WebApplicationContextUtils&lt;/a&gt; object from the spring framework to get a reference to your bean. Inside the &lt;span style=&#034;font-style: italic;&#034;&gt;doGet()&lt;/span&gt; method I have:&lt;br /&gt;
&lt;pre class=&#034;codeSample&#034;&gt;ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(getServletContext());&lt;br /&gt;Object myDao = context.getBean(&amp;quot;daoBeanName&amp;quot;);&lt;/pre&gt;
&lt;br /&gt;It&#039;s that easy... really.
&lt;!--
&lt;rdf:RDF xmlns:rdf=&#034;http://www.w3.org/1999/02/22-rdf-syntax-ns#&#034;
         xmlns:dc=&#034;http://purl.org/dc/elements/1.1/&#034;
         xmlns:trackback=&#034;http://madskills.com/public/xml/rss/module/trackback/&#034;&gt;
&lt;rdf:Description
    rdf:about=&#034;http://javageek.org/2005/09/23/accessing_a_spring_bean_from_a_servlet.html&#034;
    dc:identifier=&#034;http://javageek.org/2005/09/23/accessing_a_spring_bean_from_a_servlet.html&#034;
    dc:title=&#034;Accessing a Spring bean from a servlet&#034;
    trackback:ping=&#034;http://javageek.org/addTrackBack.action?entry=1127516498538&amp;token=-8879961859785711470&#034; /&gt;
&lt;/rdf:RDF&gt;
--&gt;
        </description>
      
      
    
    
    
    <category>Tips</category>
    
    <comments>http://javageek.org/2005/09/23/accessing_a_spring_bean_from_a_servlet.html#comments</comments>
    <guid isPermaLink="true">http://javageek.org/2005/09/23/accessing_a_spring_bean_from_a_servlet.html</guid>
    <pubDate>Fri, 23 Sep 2005 23:01:38 GMT</pubDate>
  </item>
  
  </channel>
</rss>
