简体   繁体   English

JAVA 迁移 1.6 到 1.8 和 11

[英]JAVA Migration 1.6 to 1.8 and 11

I have a project built on EJB framework, JSP and Servlet.我有一个基于 EJB 框架、JSP 和 Servlet 的项目。 So far it was running fine on Java 1.6 but since now Oracle has announced to stop support, it compelled us to expedite process to move to 1.8 and then 11 JAVA versions.到目前为止,它在 Java 1.6 上运行良好,但由于现在 Oracle 宣布停止支持,它迫使我们加快进程,转移到 1.8 和 11 JAVA 版本。 My questions are -我的问题是——

1) Since entity beans are deprecated as of Java EE 6. What is the best alternative considering time, efforts and performance? 1) 由于实体 bean 从 Java EE 6 开始被弃用。考虑到时间、工作量和性能,最佳替代方案是什么?

2) Is it a good plan to move EJB 2.2 to 3.2 or we should use any other framework? 2) 将 EJB 2.2 迁移到 3.2 是否是一个好的计划,或者我们应该使用任何其他框架?

3) What is the best alternative to SOAP, JAXB? 3) SOAP、JAXB 的最佳替代品是什么?

4) Should we move current project to SPRING and REST? 4) 我们是否应该将当前项目移至 SPRING 和 REST? If yes/no then why?如果是/否,那么为什么?

Short answer:简短的回答:

1) Since entity beans are deprecated as of Java EE 6. What is the best alternative considering time, efforts and performance? 1) 由于实体 bean 从 Java EE 6 开始被弃用。考虑到时间、工作量和性能,最佳替代方案是什么?

Move to JPA Entities转移到 JPA 实体

2) Is it a good plan to move EJB 2.2 to 3.2 or we should use any other framework? 2) 将 EJB 2.2 迁移到 3.2 是否是一个好的计划,或者我们应该使用任何其他框架?

Yes, stick with EJB, just upgrade to 3.x and switch to Local interfaces if using remote.是的,坚持使用 EJB,如果使用远程,只需升级到 3.x 并切换到本地接口。

3) What is the best alternative to SOAP, JAXB? 3) SOAP、JAXB 的最佳替代品是什么?

You can use JAX_WS if you want stick to web services, or move to REST (JAX-RS)如果您想坚持使用 Web 服务或转向 REST (JAX-RS),则可以使用 JAX_WS

4) Should we move current project to SPRING and REST? 4) 我们是否应该将当前项目移至 SPRING 和 REST? If yes/no then why?如果是/否,那么为什么?

Stay with Java EE, it has all required features.继续使用 Java EE,它具有所有必需的功能。 No point to learn additional framework.没有必要学习额外的框架。 If you want to modernize a bit you could check microprofile features of Java EE.如果您想进行一些现代化改造,您可以查看 Java EE 的微配置特性。 You can check OpenLiberty , which is modern, fast, lightweight Java EE compatible server.您可以查看OpenLiberty ,它是现代、快速、轻量级的 Java EE 兼容服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM