到目前为止,我们正在JDK1.6环境中使用EJB3.0。由于一些限制,我们被迫使用JDK1.4而不是JDK1.6。
现在我的问题是,EJB的(3.0)会在jdk1.4环境上工作吗?我想使用远程EJB的。
请让我来看看使用这个环境的利弊,这样我就可以继续下去了。
发布于 2012-01-11 07:06:21
简短答覆:否
EJB3.0是EJB2.0的扩展(很好的排序),所以请检查您正在使用的EJB的哪些特性。
获取Java1.4的更新版本。
“http://docs.oracle.com/cd/B25221_04/web.1013/b14432/intro.htm#i1049638”对新的J2EE 1.4应用程序管理和部署规范的支持
OC4J支持以下规范,定义在J2EE环境中部署和管理应用程序的新标准。
The Java Management Extensions (JMX) 1.2 specification, which allows standard interfaces to be created for managing resources, such as services and applications, in a J2EE environment. The OC4J implementation of JMX provides a JMX client that can be used to completely manage an OC4J server and applications running within it.
The J2EE Management Specification (JSR-77), a specification that allows standard components to be created for managing applications in a J2EE environment.
The J2EE Application Deployment API (JSR-88), which defines a standard API for configuring and deploying J2EE applications and modules into a J2EE-compatible environment. The OC4J implementation includes the ability to create and/or edit a deployment plan containing the OC4J-specific configuration data needed to deploy a component into OC4J.对企业JavaBeans 3.0的支持
OC4J提供了对EnterpriseReview3.0的支持,包括早期草案JavaBeans规范中定义的新的程序注释功能。该规范可从以下链接获得:
http://java.sun.com/products/ejb/
注意,OC4J必须使用JDK5.0来启用EJB3.0支持。"“
发布于 2012-01-11 07:10:00
您没有提到您在哪个容器中运行EJB3。所以,我不知道OC4J,但是在使用EJB3 :之前,在1.4上运行应用程序服务器可能会遇到麻烦),所以,简而言之,不要这样做。
https://stackoverflow.com/questions/8815283
复制相似问题