1

我有一个关于 Enterprise Java Beans 的问题。

每个企业 bean 都需要以下代码:

• 远程接口

• 主页界面

• 企业 bean 类

远程接口定义了客户端可以调用的业务方法。业务方法在企业 bean 代码中实现。

home 接口定义了允许客户端创建、查找或删除企业 bean 的方法。

我能否对 Enterprise bean 类的功能有一个易于理解的描述?

4

1 回答 1

0

Enterprise Beans are intended to provide encapsulated business logic for enterprise applications within a general container that provided things like session management, security, resource pooling, etc. as services thus allowing the business logic to be (relatively) untainted by these cross-cutting concerns.

Enterprise Beans are simply a class with your business logic which is managed by the EJB container.

于 2013-11-10T07:18:44.227 回答