JBoss EJB3

来自开放百科 - 灰狐
2007年1月19日 (五) 10:26Allen (讨论 | 贡献)的版本

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转到: 导航, 搜索

Enterprise Java Beans (EJB) 3.0 is a deep overhaul and simplification of the EJB specification. EJB 3.0's goals are to simplify development, facilitate test driven development, and focus more on writing plain old java objects (POJOs) rather than on complex EJB APIs. EJB 3.0 has fully embraced Java Annotations introduced in JDK 5.0 and also simplifies the API for CMP entity beans by using Hibernate as the EJB 3.0 Java Persistence engine.

Key Features

  • Simplified EJB API
  • Java Annotations
  • Dependency Injection

By introducing the @Inject, @EJB, and @Resource annotations, these dependencies are now injected transparently by the container into your simple Java Beans.

  • Optional Callbacks

By using such callback annotations as @PostConstruct, @PreDestroy, @PrePersist, or @PostPersist, developers can map any Java Bean or callback class method to be a callback that receives event notifications.

  • Entity Manager API

Both JBoss Application Server and Hibernate support this new API.

  • Simplified Persistence and Improved Queries
  • Usable outside of the container!

Link3

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱