
2006年7月11日
posted @
2006-07-22 21:52 努力!奮斗! 閱讀(168) |
評論 (0) |
編輯 收藏
摘要: 如果你是一名Java軟件或Ajax開發者,可能Google Web Toolkit(GWT)已經引起了你的注意。
2006年5月,Google發布了這一免費的工具箱,遵循Apache風格的許可證。GWT被設計用于以Java語言編寫Ajax應用。Google已經提供了Windows和Linux下的beta版本,并承諾以后增加Mac OS X版本。
本文描述了在Max OS X上一個簡單的Ajax應用的開發,使用GWT和常用的Java工具,如Apache Ant,Tomcat 5.0 Servlet容器,以及IntelliJ IDEA集成開發環境(后者是一款商業IDE)。本文假設讀者具有Java和Ant的基本知識。
閱讀全文
posted @
2006-07-18 16:45 努力!奮斗! 閱讀(2397) |
評論 (3) |
編輯 收藏
Mastering EJB系列的第四版。深入介紹了EJB3.0帶來的變化,包括Java persistence API以及如何在EJB中使用POJO實體。
免費下載:
http://www.theserverside.com/news/thread.tss?thread_id=41363What's new with
Mastering EJB 3.0:
- More than 50% new and revised material
- Four new chapters and one new appendix covering the latest features of the new release
- Basic and advanced concepts (such as inheritance, relationships, and so on) of Java Persistence API defined entities
- Information on integrating EJB applications with the outside world via the Java EE Connector technology
- Tips and techniques for designing and deploying EJB for better performance
- Best practices for EJB 3.0 application design, development and testing
- Complete usage of EJB annotations along with equivalent XML configuration
- Tricks and traps of EJB deployment
- JBoss Workbook that discusses the exercises for each chapter (although the chapters are themselves vendor-agnostic)
posted @
2006-07-18 11:50 努力!奮斗! 閱讀(1344) |
評論 (1) |
編輯 收藏
??? 以前用hibernate習慣用xdoclet生成mapping,最近體驗了一下hibernate-annotations,比起原來的方法要便利許多。
??? 其實hibernate支持的正是EJB3 annotation,只是在此基礎上作出了擴展,我們也可以只使用javax.persistence.*下的annotations描述持久化類。
??? 而最令人興奮的地方在于persistence annotation的標準化和主流框架開始支持這一實現,使得我們的持久化類的可移植性大大提高。很快,我們可以將這些POJO移植到EJB,Hibernate,JDO,以及任何一種對其提供支持的持久層框架,而不需要對代碼做任何改動(既不改動代碼,也不改動metadata),不需要重復惱人的配置工作。
???
hibernate-annotations目前的最新版本是3.2.0.CR1,需要與
hibernate-3.2配合使用。
??? EJB3 annotations的定義可以參照
JSR-000220 Enterprise JavaBeans 3.0 Final Release (persistence)
posted @
2006-07-11 20:30 努力!奮斗! 閱讀(236) |
評論 (0) |
編輯 收藏