
2006年7月9日
摘要: 如果你是一名Java軟件或Ajax開發(fā)者,可能Google Web Toolkit(GWT)已經(jīng)引起了你的注意。
2006年5月,Google發(fā)布了這一免費(fèi)的工具箱,遵循Apache風(fēng)格的許可證。GWT被設(shè)計(jì)用于以Java語言編寫Ajax應(yīng)用。Google已經(jīng)提供了Windows和Linux下的beta版本,并承諾以后增加Mac OS X版本。
本文描述了在Max OS X上一個(gè)簡(jiǎn)單的Ajax應(yīng)用的開發(fā),使用GWT和常用的Java工具,如Apache Ant,Tomcat 5.0 Servlet容器,以及IntelliJ IDEA集成開發(fā)環(huán)境(后者是一款商業(yè)IDE)。本文假設(shè)讀者具有Java和Ant的基本知識(shí)。
閱讀全文
posted @
2006-07-18 16:45 努力!奮斗! 閱讀(2397) |
評(píng)論 (3) |
編輯 收藏
Mastering EJB系列的第四版。深入介紹了EJB3.0帶來的變化,包括Java persistence API以及如何在EJB中使用POJO實(shí)體。
免費(fèi)下載:
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 努力!奮斗! 閱讀(1343) |
評(píng)論 (1) |
編輯 收藏
??? 以前用hibernate習(xí)慣用xdoclet生成mapping,最近體驗(yàn)了一下hibernate-annotations,比起原來的方法要便利許多。
??? 其實(shí)hibernate支持的正是EJB3 annotation,只是在此基礎(chǔ)上作出了擴(kuò)展,我們也可以只使用javax.persistence.*下的annotations描述持久化類。
??? 而最令人興奮的地方在于persistence annotation的標(biāo)準(zhǔn)化和主流框架開始支持這一實(shí)現(xiàn),使得我們的持久化類的可移植性大大提高。很快,我們可以將這些POJO移植到EJB,Hibernate,JDO,以及任何一種對(duì)其提供支持的持久層框架,而不需要對(duì)代碼做任何改動(dòng)(既不改動(dòng)代碼,也不改動(dòng)metadata),不需要重復(fù)惱人的配置工作。
???
hibernate-annotations目前的最新版本是3.2.0.CR1,需要與
hibernate-3.2配合使用。
??? EJB3 annotations的定義可以參照
JSR-000220 Enterprise JavaBeans 3.0 Final Release (persistence)
剛剛落戶,近期將抽空整理出一些東西發(fā)上來。