Java – what features does EJB3 bring and how does EJB3 integrate with the spring framework?

I have never been involved in EJB work. When I started programming spring, it was already here. All my projects only use spring. Recently, I gave an interview. They wanted EJB 3 0, so I want to know EJB3 0 how the stack uses the spring framework and why many projects now use the spring framework instead of EJB3 0, don't quote me here, because I may be wrong

I would appreciate it if I could explain the differences and benefits of using another from a practical point of view

Be careful not to give wiki links as answers, because I want to know how this technology stacks

Update what else is the best way to start learning EJB 3? What are the recommended books and online tutorials?

Solution

EJB is a very old technology (about 1999) However, before the third edition of the standard, it was very inconvenient to use Spring has become popular as a rational alternative, providing some of the same core functions (declarative transactions and security) and some new functions (dependency injection, AOP) It also integrates well with many other technologies, such as hibernate

However, from v3 Since 0, EJB (or rather, the entire Java EE platform to which EJB belongs) has been greatly improved and made easier to use In addition, many popular functions of many frameworks (including spring) have been made into official standards and added to Java EE

At present, Java EE platform has many advantages over spring in popularity, because they are also easy to use and functional, and Java EE has the advantages based on open standards and multiple implementations gross. At the same time, when integrating with other frameworks (which used to be its advantage), spring seems to have problems keeping up with the latest technology

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>