简体   繁体   English

我们可以在JDK 1.4中使用EJB(3.0)吗

[英]Can we use EJB(3.0) in JDK 1.4

As of now we are using EJB 3.0 in JDK 1.6 Environment. 到目前为止,我们正在JDK 1.6环境中使用EJB 3.0。 Due to some restriction we are forced to use JDK1.4 instead of JDK1.6. 由于某些限制,我们被迫使用JDK1.4而不是JDK1.6。

Now my question is will Ejb's(3.0) work on jdk1.4 environment.I want to use Remote EJB's . 现在我的问题是Ejb(3.0)是否可以在jdk1.4环境下工作。我想使用Remote EJB的

Please let me the props and cons of using this environment so that i could proceed further. 请让我使用此环境的利弊,以便我可以继续进行。

Quote to oracle doc: 引用oracle doc:

What JDK is Required? 需要什么JDK?

By default, if you are using EJB 3.0, then you must use JDK 1.5 . 默认情况下,如果使用的是EJB 3.0,则必须使用JDK 1.5 By default, OC4J does not support the use of EJB 3.0 and JDK 1.4. 默认情况下,OC4J不支持使用EJB 3.0和JDK 1.4。

EDIT: 编辑:

StackOverflow thread : EJB specifications and Java versions - backwards compatibility StackOverflow线程: EJB规范和Java版本-向后兼容

Short Answer: No 简短答案:否

EJB 3.0 is an extension of EJB 2.0 (well sort off) so please check what features of EJB you are using. EJB 3.0是EJB 2.0的扩展(很好的整理),因此请检查您正在使用EJB的哪些功能。

Get the updated version of Java 1.4. 获取Java 1.4的更新版本。

From: http://docs.oracle.com/cd/B25221_04/web.1013/b14432/intro.htm#i1049638 "" Support for New J2EE 1.4 Application Management and Deployment Specifications 来自: http : //docs.oracle.com/cd/B25221_04/web.1013/b14432/intro.htm#i1049638 “”支持新的J2EE 1.4应用程序管理和部署规范

OC4J supports the following specifications defining new standards for deploying and managing applications in a J2EE environment. 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.

Support for Enterprise JavaBeans 3.0 支持Enterprise JavaBeans 3.0

OC4J provides support for Enterprise JavaBeans 3.0, including the new program annotation functionality, as defined in the Early Draft Review specification. OC4J提供了对Enterprise JavaBeans 3.0的支持,包括在Early Draft Review规范中定义的新程序注释功能。 The specification is available at the following link: 该规范可通过以下链接获得:

http://java.sun.com/products/ejb/ http://java.sun.com/products/ejb/

Note that OC4J must use JDK 5.0 to enable EJB 3.0 support. 请注意,OC4J必须使用JDK 5.0来启用EJB 3.0支持。 ""

您没有提到要在哪个容器中运行EJB3。因此,我不了解OC4J,但是即使在要使用EJB3之前,您也可能在1.4上运行应用程序服务器时遇到麻烦:)短暂的不要这样做。

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

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