简体   繁体   中英

How backwards compatible are EJB containers?

I have inherited an application that is running on JBoss 2.4.3 (which I believe is EJB spec 2.0 compatible), and I'm running into quite a few issues (like being able to use modern log4j "Logger" apis [JBoss 2.4 specific issues pushing me to upgrade]).

I understand that I should be able to use a EJB 2.1 container (Jboss 4) without issue, but should I expect to be able to go further?

What are the backwards compatibility requirements for EJB?

Are they meant to be backwards compatible through major versions?

Do application vendors make them fully backwards compatible?

What modifications are necessary to make an older application conform? (small or large? application configuration or re-compilation? etc)

log4j and EJB 2.0 are not related. If you have problems with log4j, then most likely it is a class path issue and not EJB 2.0 compatbility issue. Probably your old application assumes that log4j is somewhere on system class path.

http://what-when-how.com/enterprise-javabeans-3/backward-compatibility-and-interoperability-with-ejb-2/ states that

The EJB 3 specification requires that all complying containers support EJB 2

Which is a good sign. It goes on further to talk about mixing EJB 2 and 3 functionality. So there may be some exceptions, but it really shouldn't be any where near impossible.

Reality may be different; I'll update if I find problems with my jboss upgrade.

See this compatibility report for the EJB library:

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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