Home Interface Home [nter£acE ■EJB体系结构中的另一类构件是 Home Interface Home Interface包含 enterprise bean生命周期管理的相 关方法 客户程序使用 Home Interface创建或删除 enterprise bean的实例
Home Interface ◼ EJB体系结构中的另一类构件是Home Interface ◼ Home Interface包含enterprise bean生命周期管理的相 关方法 ◼ 客户程序使用Home Interface创建或删除enterprise bean的实例
Remote Interface Remote Interface ■EJB体系结构中的另一类构件是 Remote Interface Remote Interface包含 enterprise bean实现的商业方法的定义 ■定义了 enterprise bean提供的服务 客户程序只能通过 remote interface访问 enterprise bean实 现的商业方法,不能直接调用
Remote Interface ◼ EJB体系结构中的另一类构件是Remote Interface ◼ Remote Interface包含enterprise bean实现的商业方法的定义 ◼ 定义了enterprise bean提供的服务 ◼ 客户程序只能通过remote interface访问enterprise bean实 现的商业方法,不能直接调用
Local Interface LocalHome Interface EJB20中引入了本地接口 Loca接口完成与 Remote接口类似的功能 " LocalHome接口完成与Home接口类似的功能 本地接口的不同之处在于客户应用通过本地接口发起的 调用是本地调用 比远程接口有更高的效率 要求客户应用和 enterprise bean在同一个进程(虚拟机)内 例如一个 Session bean要访问同一容器内的某个 Entity Bean,可以使用 Entity Bean的本地接口以获得更高的执 行效率
Local Interface与LocalHome Interface ◼ EJB 2.0中引入了本地接口 ◼ Local接口完成与Remote接口类似的功能 ◼ LocalHome接口完成与Home接口类似的功能 ◼ 本地接口的不同之处在于客户应用通过本地接口发起的 调用是本地调用 ◼ 比远程接口有更高的效率 ◼ 要求客户应用和enterprise bean在同一个进程(虚拟机)内 ◼ 例如一个Session Bean要访问同一容器内的某个Entity Bean,可以使用Entity Bean的本地接口以获得更高的执 行效率
EJB Container EJB Container EJB Container ■ EJB Container为 enterprise bean提供运行环境,并管 理运行于其中的 enterprise bean n理论上讲,一个EJB容器可以包含任何数量的 enterprise bean
EJB Container ◼ EJB Container ◼ EJB Container为enterprise bean提供运行环境,并管 理运行于其中的enterprise bean ◼ 理论上讲,一个EJB容器可以包含任何数量的 enterprise bean
EJB Container System-Level Services EJB Container为 enterprise bean的执行提供系 统级的服务 n如自动将 enterprise bean的 home interface注册到一个 目录服务中 自动注册服务支持客户应用查找定位 enterprise bean的实例
EJB Container ◼ EJB Container为enterprise bean的执行提供系 统级的服务 ◼ 如自动将enterprise bean的home interface注册到一个 目录服务中 ◼ 自动注册服务支持客户应用查找定位enterprise bean的实例