Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Enterprise JavaBeans™ Specification, v1.1 - Sun Microsystems.pdf
Скачиваний:
11
Добавлен:
24.05.2014
Размер:
1.62 Mб
Скачать

Sun Microsystem Inc

Bean Provider’s responsibilities

Enterprise JavaBeans v1.1, Final Release

Support for Transactions

A container can make it possible for an enterprise Bean to be invoked from a non-Java client. For example, the CORBA mapping of the Enterprise JavaBeans architecture [8] allows any CORBA client to invoke any enterprise Bean object on a CORBA-enabled server using the standard CORBA API.

Figure 45 Interoperating with Non-Java Clients and/or Servers

CORBA client

EJB Server

 

X

X

CICS

bridge

LU 6.2

database A

database B

Providing connectivity to existing server applications is also important. An EJB Server may choose to provide access to existing enterprise applications, such as applications running under CICS on a mainframe. For example, an EJB Server may provide a bridge that makes existing CICS programs accessible to enterprise Beans. The bridge can make the CICS programs visible to the Java programming lan- guage-based developer as if the CICS programs were other enterprise Beans installed in some container on the EJB Server.

Note: It is beyond the scope of the Enterprise JavaBeans specification to define the bridging protocols that would enable such interoperability.

11.3 Bean Provider’s responsibilities

This section describes the Bean Provider’s view of transactions and defines his responsibilities.

11.3.1 Bean-managed versus container-managed transaction demarcation

When designing an enterprise bean, the Bean Provider must decide whether the enterprise bean will demarcate transactions programmatically in the business methods (bean-managed transaction demarcation), or whether the transaction demarcation is to be performed by the Container based on the transaction attributes in the deployment descriptor (container-managed transaction demarcation).

159

11/24/99