JSR 244,
the umbrella spec that defines what other specs and capabilities will
be included as part of Java EE 5 (formerly J2EE 1.5), has had it's
public review spec approved by the JCP EC. The theme of the release is
ease of development, focused on redefining the platform in light of
annotations and pojo-driven development, with major additions including
the Java Persistence API 1.0 (EJB 3 entities), JSF, JSTL, and
more.
The specific API's mandated for Java EE 5 are:
Enterprise JavaBeans (EJB) 3.0
Servlet 2.4
JavaServer Pages (JSP) 2.1
Java Message Service (JMS) 1.1
Java Transaction API (JTA) 1.0
JavaMail 1.3
JavaBeans Activation Framework 1.1
J2EE Connector Architecture 1.5
Web Services for J2EE 1.1
Java API for XML-based RPC (JAX-RPC) 1.1
Java API for XML Web Services (JAX-WS) 2.0
Java Architecture for XML Binding (JAXB) 2.0
SOAP with Attachments API for Java (SAAJ) 1.3
Java API for XML Registries (JAXR) 1.0
Java 2 Platform, Enterprise Edition Management API 1.0
Java 2 Platform, Enterprise Edition Deployment API 1.1
Java Authorization Service Provider Contract for Containers 1.0
Debugging Support for Other Languages (JSR-45)
Standard Tag Library for JavaServer Pages (JSTL) 1.1
Web Services Metadata for the Java Platform 1.0
JavaServer Faces 1.2 Requirements
Common Annotations for the Java Platform 1.0
Streaming API for XML (StAX) 1.0
Java Persistence API 1.0
恐
怕其中最引入注目的就是EJB3了。 这期间一直争论不休。而且这里还增加了一个新的Java Persistence API 1.0
,可能是需要将EJB以前的广受BS的CMP与JDO结合起来还是怎么?而且,对于EJB3,由于Oracle的加入,可能会偏向TopLink,再加上
Hibernate学来的一些内容好了。
另外就是,JSF仍然需要加强,还没与看过规范,这其间和JSP之间的融合会怎样。总之,JSF是基于Servlet的,JSP是主要表现技术,这核心还是要看Servlet有何实质性的改变。
Java EE5,听起来还是不习惯,还没叫习惯嘛,估计很快就会适应的。到底它是让开发简单了吗?简单在哪里?
Debu Panda有篇小文章倒是可以看看,也可以参与到其中讨论一下: Is Java EE 5.0 really simplifying development?
也可以看一下TSS的讨论:http://www.theserverside.com/news/thread.tss?thread_id=35945。
不过,趋势总是这样,现在是一个纷乱的时代,一方面重型技术往完全精确的工业化目标MDA发展,另一方面却层出不穷的个人英雄式的轻量方法。但是不管哪一个,单方面都不时软件工业的救星。
简单是美,壮观也是美。当然,对于应用来说,简单地解决复杂问题那才是美。