EJB创建使用SessionBean EJBObject和EJBHome接口 [英] EJB creating using SessionBean EJBObject and EJBHome interfaces

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

问题描述

我对于创建EJB感到困惑

I am confused about creating EJB

我已经在互联网上看到过很多EJB样本,还有使用SessionBean,EJBObject和EJBObject开发EJB的示例项目EJBHome接口。在其他一些示例中,EJB是在没有这些接口的情况下创建的,而仅使用一个或两个接口如果其本地可访问,则使用javax.ejb.Local接口进行远程访问时使用javax.ejb.Remote。

I have seen many samples of EJB on the internet and also sample project in which an EJB is developed using SessionBean , EJBObject and the EJBHome interfaces. In some other examples EJB is created without these interfaces and using only one or two interfaces e.g. if its locally accessible, javax.ejb.Local interface is used while for remotely access javax.ejb.Remote is used.

所以我对创建EJB感到困惑。这两种类型之间有什么区别?

So i am confused about creating EJB. What is the difference between these two type?

我知道第一个是为远程访问实现EJB,但另一个则令我感到困惑

I know that first one is implementing EJB for remote Access but the other one is confusing me

请帮助我...

推荐答案

EJBHome 和EJBObject 来自旧版本的EJB(在EJB 3.0之前)。

EJBHome and EJBObject are from older versions of EJB (before EJB 3.0).

您可以将它们完全覆盖。

You can igore them completely.

EJB 3.0与旧版本相比是相当简单和简单的。

EJB 3.0 is quite straightforward and simple compared to the older versions.

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

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