8/25/2010

Automatic Resource Management in java 7

最近 Java 7 build 105版本加入一個 Automatic Resource Management 特性,基本上,就是try-with-resources觀念。try block中所使用的resource將會自動被關閉不管正常執行完或發生錯誤,日後不需要再手動關掉resource物件,。

FEATURE SUMMARY: A *resource* is as an object that must be closed manually, such as a java.io.InputStream, OutputStream, Reader, Writer, Formatter; java.nio.Channel;java.net.socket; java.sql.Connection, Statement, ResultSet, or java.awt.Graphics. The *automatic resource management statement* is a form of the try statement that declares one or more resources. The scope of these resource declarations is limited to the statement. When the statement completes, whether normally or abruptly, all of its resources are closed automatically.

8/23/2010

HowTo deploy Redmine on ubuntu with Passenger

redmine已經是非常不錯專案管理軟體,主要簡潔、方便,重點是用rubyonRails架構撰寫,自己要客制化也比較容易一點!

redmine howtos 也撰寫了各式各樣不同的環境安裝,如果只要安裝redmine直接就可以解決。

但是如何佈署至Apache(雖然也是很多文章),同時也是第一次使用Passsenger算滿值得記念。

8/11/2010

Tapestry 5.2.0 Alpha Release

似乎是等太久,不過仍然是Tapestry5.2 Alpha版本 Orz,依舊修改一堆bugs 與performance 議題,主要改進:

  • 能夠動態載入Service介面之實作
  • 新增QueryParameters機制,方便在page存取URL帶來資料
  • 能夠處理Form取消邏輯,將略過client-side validattion
  • 使用標準 SAX parser, 為了能夠更容易支援Google App Engine
  • 支援 JSR-303 Bean Validation
  • 加強與簡化meta-programming 能力 (java要做到這個地步真不容易)
  • Page機制改成singleton (no longer pooled instanced),內部機制調整

Tapestry 已經是非常不錯framework,目前也使用5.1於多個專案中,開發速度、Performance都已經接收過考驗也值得推薦。