使用EJB [英] Consuming an EJB

查看:159
本文介绍了使用EJB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在JDK 1.4应用程序中使用Java EE 6(JDK6)制作的EJB吗?

Can I consume EJBs made with Java EE 6 (JDK6) in an application made with JDK 1.4?

我很抱歉,但我对EJB非常新鲜,只是试图评估在我们的服务中使用Java EE 6的可能性。

I am sorry but I am very new to EJBs and just trying to evaluate the possibilities of using Java EE 6 in one of our services.

我可以使用EJB,如 http://openejb.apache .org / hello-world.html 我的JDK 4兼容应用程序?

Can I consume the EJB like shown in http://openejb.apache.org/hello-world.html from my JDK 4 compatible app?

推荐答案

您不能运行Java EE 6应用程序服务器在JDK 1.4,中,可以执行JDK 1.4中的独立应用程序,并从中执行消费(远程调用)EJB 应用程序服务器(包括版本6)通过JNDI检索引用(像往常一样)。

You cannot run a Java EE 6 Application Server in a JDK 1.4, but you can execute an independent application in JDK 1.4 and consume (invoke remotely) EJBs from whatever Java EE Application Server (included version 6 ones) retrieving a reference to it by JNDI (as usual).

远程通信(后台)通过RMI完成,兼容JDK1.4和JDK6之间。

The remote communication (behind scenes) is done via RMI, which is compatible between JDK1.4 and JDK6.

这篇关于使用EJB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆