Jakarta 9.1
Jakarta 9 是完成包名迁移后的第一个版本,正式开始版本迭代,甚至删除了不建议使用的api。
Jakarta 9 发布后,马上发布了一个 Jakarta 9.1 维护版本,api 层面没有改动,主要是文档协议方面的变化。
9.1 对 9 的改动。
- Jakarta 9.1 支持 java 11,Jakarta 9 只支持到 java 8
- idl, rmi-iiop 设置为可选
- 补充了 json-bind 小节
- 补充了 websocket 小节
- jta 包名还是使用
javax.transaction
- jndi 包名还是使用
javax.naming.Context
1. Java SE 包含的企业级api
api | 说明 |
---|---|
Java IDL | Java 11 中已删除,Jakarta 也未包含 |
JDBC | |
RMI-JRMP | |
RMI-IIOP | Java 11 中已删除,Jakarta 也未包含 |
javax.rmi.PortableRemoteObject | Java 11 中已删除,Jakarta 也未包含 |
JNDI | |
JAXP | |
StAX | |
JAAS | |
JMX | |
JAX-WS | Java 11 中已删除,Jakarta 中为可选api |
JAXB | Java 11 中已删除,Jakarta 中为可选api |
JAF | Java 11 中已删除,Jakarta 中为必选api |
SAAJ | Java 11 中已删除,Jakarta 中为可选api |
Common Annotations | Java 11 中已删除,Jakarta 中为必选api |
2. 必选 Jakarta api
Jakarta 9 | Jakarta 8 |
---|---|
Enterprise Beans 4.0 | Enterprise Beans 3.2 |
Servlet 5.0 | Servlet 4.0 |
Server Pages 3.0 | Server Pages 2.3 |
Expression Language 4.0 | Expression Language 3.0 |
Messaging 3.0 | Messaging 2.0 |
Transactions 2.0 | Transactions 1.3 |
Activation 2.0 | |
Mail 2.0 | Mail 1.6 |
Connectors 2.0 | Connectors 1.7 |
RESTful Web Services 3.0 | RESTful Web Services 2.1 |
WebSocket 2.0 | WebSocket 1.1 |
JSON Processing 2.0 | JSON Processing 1.1 |
JSON Binding 2.0 | JSON Binding 1.0 |
Concurrency 2.0 | Concurrency 1.1 |
Batch 2.0 | Batch 1.0 |
Authorization 2.0 | Authorization 1.5 |
Authentication 2.0 | Authentication 1.1 |
Security API 2.0 | Security 1.0 |
Server Pages Debugging 2.0 | Debugging Support for Other Languages 1.0 |
Standard Tag Library 2.0 | Standard Tag Library 1.2 |
Server Faces 3.0 | Server Faces 2.3 |
Common Annotations 2.0 | Annotations 1.3 |
Persistence 3.0 | Persistence 2.2 |
Bean Validation 3.0 | Bean Validation 2.0 |
Managed Beans 2.0 | Managed Beans 1.0 |
Interceptors 2.0 | Interceptors 1.2 |
Contexts and Dependency Injection 3.0 | Contexts and Dependency Injection 2.0 |
Dependency Injection 2.0 | Dependency Injection 1.0 |
XML Binding 3.0 | |
Enterprise Web Services 2.0 | Enterprise Web Services 1.4 |
XML Web Services 3.0 | |
Web Services Metadata 3.0 | |
SOAP with Attachments 2.0 |
3. 已删除 api
Jakarta EE Technology |
---|
XML Registries 1.0 |
XML RPC 1.1 |
Deployment 1.7 |
Management 1.1 |
Distributed Interoperability (EJB 3.2 Core Specification, Chapter 10) |
4. 有用的 api
api | 说明 |
---|---|
WebSocket 2.0 | websocket |
Servlet 5.0 | web开发必选 |
Expression Language 4.0 | el表达式,日常用得不多 |
Bean Validation 3.0 | 数据校验 |
Persistence 3.0 | jpa国内用得不多 |
Common Annotations 2.0 | 常用注解 |
Messaging 3.0 | jms异步消息 |
Transactions 2.0 | 事务 |
Mail 2.0 | 收发邮件 |
JSON Binding 2.0 | json与对象转换 |
Activation 2.0 | mail用来支持附件 |