JBoss 5迎来Java的彻底的可配置时代

05-10-29 banq

JBoss 5 is a Embeddable JBoss, lightweight middleware with EJB3

http://www.jdon.com/artichect/embeddable.htm

zhangmingjing
2005-10-29 19:24

这样的话不知道他们怎么处理群集?看来这次EJB3从Hibernate中吸取了很多东西,使得Application Server的灵活性得到了进一步的加强。

banq
2005-10-30 10:31

这里面有一个POJO概念的转换,原来Hiberante提出的POJO,只是Model 的POJO,是一种数据的POJO。

更重要的是,而随着Ioc模式的诞生,Service性质的POJO得到重视,可注射可配置的普通JavaBeans可以扩展到整个组件。

所以,这两种性质的POJO是不一样的,因为其蕴含的意义很不一样,后者是Spring/PicoContainer推动的重要变革。

banq
2005-10-30 10:33

集群也不用担心,在前面我们集群的讨论中,集群和事务、安全一样,最多细化到方法级别,而在方法级别,AOP提供了有力的肢解工具。

http://www.jdon.com/jive/thread.jsp?forum=46&thread=23302

zhangmingjing
2005-10-30 23:30

Transparent and automated persistence

Your application server’s CMP engine implements automated persistence. It takes care of the tedious details of JDBC ResultSet and PreparedStatement handling. So does Hibernate; indeed, Hibernate is a great deal more sophisticated in this respect. But Hibernate does this in a way that is transparent to your domain model.

We use transparent to mean a complete separation of concerns between the persistent classes of the domain model and the persistence logic itself, where the persistent classes are unaware of―and have no dependency to―the persistence

mechanism.

Mapping persistent classes

Our Item class, for example, will not have any code-level dependency to any Hibernate API. Furthermore:

1、

Hibernate doesn’t require that any special superclasses or interfaces be inherited or implemented by persistent classes. Nor are any special classes used to implement properties or associations. Thus, transparent persistence improves code readability, as you’ll soon see.

2、

Persistent classes may be reused outside the context of persistence, in unit tests or in the user interface (UI) tier, for example. Testability is a basic requirement for applications with rich domain models.

3、

In a system with transparent persistence, objects aren’t aware of the underlying

data store; they need not even be aware that they are being persisted or retrieved. Persistence concerns are externalized to a generic persistence manager

interface ―in the case of Hibernate, the Session and Query interfaces.

Hibernate的这几点,正是EJB值得借鉴的地方,EJB的规范太复杂了。

2Go 1 2 下一页