<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>waelchatila.com - Java category</title>
  <link>http://waelchatila.com:80/categories/java/</link>
  <description>Notes on Software, Engineering and Science</description>
  <language>en</language>
  <copyright>Wael Chatila</copyright>
  <lastBuildDate>Fri, 23 May 2008 05:27:00 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  
  <item>
    <title>GreenMail v1.3 Released</title>
    <link>http://waelchatila.com:80/2007/12/19/1198107540000.html</link>
    
      
        <description>
          This release contains minor changes to GreenMail core, most notable the introduction of slf4j for logging.
&lt;p/&gt;
New in this release is a JBoss service for GreenMail.
The service runs GreenMail as a lightweight mail server sandbox, nicely suited for developers.
&lt;p/&gt;
Check out the project page &lt;a href=&#034;http://www.icegreen.com/greenmail&#034;&gt;http://www.icegreen.com/greenmail&lt;/a&gt;
for the latest documentation!
&lt;p/&gt;
Note about the released files (&lt;a href=&#034;http://sourceforge.net/project/showfiles.php?group_id=159695&amp;package_id=179329&amp;release_id=562874&#034;&gt;goto download page&lt;/a&gt;):
&lt;ul&gt;
&lt;li&gt;greenmail-1.3-bundle.jar : mvn upload bundle&lt;br&gt;
&lt;li&gt;greenmail-1.3.jar : contains all greenmail core classes&lt;br&gt;
&lt;li&gt;greenmail-1.3-src.zip : contains sources, javadoc, required libs, docs&lt;br&gt;
&lt;li&gt;greenmail-1.3.zip : like above, but no sources&lt;br&gt;
&lt;li&gt;greenmail-jboss-service-1.3.sar : deployable JBoss service archive&lt;br&gt;
&lt;/ul&gt;
&lt;p/&gt;
&lt;br&gt;
&lt;b&gt;Changes:&lt;/b&gt;&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;Added logging via slf4j, replacing System.out.println&lt;br&gt;
&lt;li&gt;Minor improvements:&lt;ul&gt;
  &lt;li&gt;c.i.g.AbstractServer exposes ServerSetup&lt;br&gt;
  &lt;li&gt;c.i.g.util.GreenMailUtil exposes sendTextEmail(...)&lt;br&gt;
&lt;/ul&gt;
&lt;li&gt;New JBoss service wrapper (see the &lt;a href=&#034;http://www.icegreen.com/greenmail&#034;&gt;project page&lt;/a&gt;)&lt;br&gt;
&lt;/ul&gt;
&lt;p/&gt;
&lt;b&gt;Credits:&lt;/b&gt;&lt;br&gt;
Marcel May added the JBoss service and contributed the logging changes. Thanks!&lt;br&gt;
&lt;p/&gt;
&lt;b&gt;Upcoming changes:&lt;/b&gt;&lt;br&gt;
For 1.4 we plan to replace the current Foedus smtp and pop implementation with &lt;a href=&#034;http://subetha.tigris.org&#034; rel=&#034;nofollow&#034;&gt;http://subetha.tigris.org&lt;/a&gt;
        </description>
      
      
    
    
    
    <category>Java</category>
    
    <comments>http://waelchatila.com:80/2007/12/19/1198107540000.html#comments</comments>
    <guid isPermaLink="true">http://waelchatila.com:80/2007/12/19/1198107540000.html</guid>
    <pubDate>Wed, 19 Dec 2007 23:39:00 GMT</pubDate>
  </item>
  
  <item>
    <title>Groovy vs BeanShell</title>
    <link>http://waelchatila.com:80/2007/05/09/1178775480000.html</link>
    
      
        <description>
          Below is a quick and dirty test to compare the speed performance between bean shell and groovy. Bean shell is an order of magnitude faster. If you don&#039;t need groovy closure and other nice groovy features...just use bean shell. It&#039;s only one small jar away.


&lt;div class=&#034;codeSample&#034;&gt;
public static void main(String[] args) throws EvalError {
        StringBuilder script = new StringBuilder();
        for (int i=0;i&lt;900;i++) {
            script.append(&#034;res&#034;);
            script.append(i);
            script.append(&#034;=&#034;);
            script.append(i+&#034;+&#034;+i+&#034;*&#034;+i);
            script.append(&#034;;\n&#034;);
        }
        GroovyShell groovyShell = new GroovyShell();
        Interpreter bsh = new Interpreter();

        long t = System.currentTimeMillis();
        groovyShell.evaluate(script.toString());
        System.out.println(System.currentTimeMillis() - t);

        t = System.currentTimeMillis();
        for (int i=0;i&lt;1000;i++) {
            int j = i+i*i;
        }
        System.out.println(System.currentTimeMillis() - t);

        t = System.currentTimeMillis();
        bsh.eval(script.toString());
        System.out.println(System.currentTimeMillis() - t);

    }
&lt;/div&gt;
        </description>
      
      
    
    
    
    <category>Java</category>
    
    <comments>http://waelchatila.com:80/2007/05/09/1178775480000.html#comments</comments>
    <guid isPermaLink="true">http://waelchatila.com:80/2007/05/09/1178775480000.html</guid>
    <pubDate>Thu, 10 May 2007 05:38:00 GMT</pubDate>
  </item>
  
  <item>
    <title>GreenMail 1.2 Released</title>
    <link>http://waelchatila.com:80/2007/04/05/1175800440000.html</link>
    
      
        <description>
          This release includes
&lt;ul&gt;
&lt;li&gt; New license! By popular demand (if one person counts as popular) the old LGPL has been replaced with the Apache 2.0 license.
&lt;li&gt; Now using javamail 1.4 
&lt;li&gt; Greenmail is now officially multithreaded with improved multithread tests.
&lt;li&gt; Opening ssl server sockets should now work on any non sun jdk&#039;s
&lt;li&gt; Changed name of &#034;Servers.java&#034; to  &#034;GreenMail.java&#034; (changes are backwards compatible). 
&lt;li&gt; Subversion url has changed to &lt;a href=&#034;http://greenmail.svn.sourceforge.net/svnroot/greenmail/trunk&#034;&gt;http://greenmail.svn.sourceforge.net/svnroot/greenmail/trunk&lt;/a&gt;
&lt;li&gt; Fixed bug related to ports sometimes not being closed after an ended test case
&lt;li&gt; Improved documentation and examples.                                         
&lt;/ul&gt;              

The Greenmail project pages can be found at
&lt;a href=&#034;http://www.icegreen.com/greenmail&#034;&gt;http://www.icegreen.com/greenmail&lt;/a&gt;
&lt;br/&gt;
Lastly I&#039;d like to thank Marcel May for his continued contributions to Greenmail.
        </description>
      
      
    
    
    
    <category>Java</category>
    
    <comments>http://waelchatila.com:80/2007/04/05/1175800440000.html#comments</comments>
    <guid isPermaLink="true">http://waelchatila.com:80/2007/04/05/1175800440000.html</guid>
    <pubDate>Thu, 05 Apr 2007 19:14:00 GMT</pubDate>
  </item>
  
  <item>
    <title>GreenMail v1.1 Released</title>
    <link>http://waelchatila.com:80/2006/11/11/1163271540000.html</link>
    
      
        <description>
          Version 1.1 of GreenMail has been released!&lt;br /&gt;
&lt;br /&gt;
GreenMail is an open source, intuitive and easy-to-use suite of email servers supporting SMTP, SMTPS, POP3, POP3S, IMAP, and IMAPS for testing purposes.&lt;br /&gt;
&lt;br /&gt;
Please see the &lt;a href=&#034;http://www.icegreen.com/greenmail&#034;&gt;GreenMail Project Pages&lt;/a&gt; for more details.&lt;br /&gt;
&lt;br /&gt;
Updates in this version.&lt;br /&gt;
&lt;ul&gt;
    &lt;li&gt;Originally GreenMail was intended to run from one thread. Stephen Fenche has contributed code to make GreenMail thread safe&lt;br /&gt;
    &lt;/li&gt;
    &lt;li&gt;Marcel May has contributed a &lt;a href=&#034;https://svn.sourceforge.net/svnroot/greenmail/trunk/pom.xml&#034;&gt;pom.xml&lt;br /&gt;
    &lt;/a&gt; for all maven fans out there&lt;/li&gt;
    &lt;li&gt;The source code has moved from my closet svn server to sourceforge&#039;s . To browse the latest source see &lt;a href=&#034;https://svn.sourceforge.net/svnroot/greenmail&#034;&gt;https://svn.sourceforge.net/svnroot/greenmail&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;A couple of bug fixes here and there&lt;/li&gt;
    &lt;li&gt;A few class name changes. To avoid pesky name clashes with your (presumable) project native &lt;em&gt;Util.java&lt;/em&gt; and &lt;em&gt;com.icegreen.greenmail.util.Util.java&lt;/em&gt;, the latter has been renamed to &lt;em&gt;com.icegreen.greenmail.util.GreenMailUtil&lt;/em&gt;.java. Same applies for &lt;em&gt;com.icegreen.greenmail.user.User.java&lt;/em&gt; which has become &lt;em&gt;com.icegreen.greenmail.user.GreenMailUser.java&lt;/em&gt;&lt;br /&gt;
    &lt;/li&gt;
    &lt;li&gt;Some updates and additions to GreenMailUtil.java&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Outstanding issues I haven&#039;t got around to resolve yet&lt;br /&gt;
&lt;ul&gt;
    &lt;li&gt;Ricky Ng-Adam has reported problems with SSL connections under IBM JDK 1.4.2 &lt;/li&gt;
&lt;/ul&gt;
        </description>
      
      
    
    
    
    <category>Java</category>
    
    <comments>http://waelchatila.com:80/2006/11/11/1163271540000.html#comments</comments>
    <guid isPermaLink="true">http://waelchatila.com:80/2006/11/11/1163271540000.html</guid>
    <pubDate>Sat, 11 Nov 2006 18:59:00 GMT</pubDate>
  </item>
  
  <item>
    <title>DisplayTag Paging</title>
    <link>http://waelchatila.com:80/2006/11/07/1162942661799.html</link>
    
      
      
        <description>
          &lt;a href=&#034;http://displaytag.sourceforge.net&#034;&gt;DisplayTag&lt;/a&gt; is a very versatile jsp tag library. It provides a whole lot for free. Paging, sorting, even / odd highlighting, grouping, exporting to PDF, Excel, CSV, XML, just to mention a few things it can do.  &lt;br /&gt;
I use it in pretty much every project. However, I&#039;ve yet to see a built in way to keep track of which page you were at last. In this blog entry I explain one general way to get around this limitation.&lt;p&gt;&lt;a href=&#034;http://waelchatila.com:80/2006/11/07/1162942661799.html&#034;&gt;Read more...&lt;/a&gt;&lt;/p&gt;
          &lt;p&gt;&lt;a href="http://waelchatila.com:80/2006/11/07/1162942661799.html"&gt;Read more...&lt;/a&gt;&lt;/p&gt;
        </description>
      
    
    
    
    <category>Java</category>
    
    <category>Web</category>
    
    <comments>http://waelchatila.com:80/2006/11/07/1162942661799.html#comments</comments>
    <guid isPermaLink="true">http://waelchatila.com:80/2006/11/07/1162942661799.html</guid>
    <pubDate>Tue, 07 Nov 2006 23:37:41 GMT</pubDate>
  </item>
  
  </channel>
</rss>
