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

Sun Microsystems Inc

Transaction interoperability

Enterprise JavaBeans 2.0, Public Draft

Support for Distribution and Interoperability

2.Client containers that use the OTS transaction context format but still do not support transaction interoperability with other vendor’s containers must reject the Coordinator::register_resource call (step 3 in the object interaction diagram above) if the server’s Resource object reference indicates that it belongs to another vendor’s container.

18.5.2.2EJB container requirements

All EJB containers (including those that do not support transaction propagation) must include the TransactionPolicyComponent tagged component in the IOR for EJBObject and EJBHome references as described in section 18.5.1.3.

18.5.2.2.1Requirements for EJB containers supporting transaction interoperability

When an EJB container that supports transaction propagation receives the IIOP request message, it must behave as follows:

If there is no OTS transaction context in the IIOP message, the container must follow the behavior described in Section 16.7.

If there is a valid, complete OTS transaction context in the IIOP message, the container must follow the behavior described in Section 16.7.

If there is a null transaction context (as defined in section 18.5.2.1 above) in the IIOP message, the container’s required behavior is described in the table below. The entry “throw RemoteException” indicates that the EJB container must throw the java.rmi.RemoteException to the client after the received request” interaction with the server’s transaction manager (after step 1 in the object interaction diagram above).

EJB method’s

 

Transaction

EJB container behavior on receiving

Attribute

null OTS transaction context

 

 

Mandatory

throw RemoteException

Required

throw RemoteException

RequiresNew

follow Section 16.7

Supports

throw RemoteException

NotSupported

follow Section 16.7]

Never

follow Section 16.7]

Bean Managed

follow Section 16.7

 

 

18.5.2.2.2Requirements for EJB containers not supporting transaction interoperability

When an EJB container that does not support transaction interoperability receives the IIOP request message, it must behave as follows:

369

5/31/00