The CCI interfaces for outbound communication are contained in the packages javax.resource.cci
and net.fsc.jca.communication.cci
. For outbound communication, the CCI offers almost the same functionality as the BeanConnect-specific interfaces (with the exception of the additional functionality with UTM partners offered by the EISUpicConnection
interface). You find information on the program framework using the CCI interface in Program framework for Common Client Interface (CCI) .
Connection factory interfaces
On deployment of the resource adapter, you can specify that you want to use outbound communication via CCI. To do this, you specify one of the following connection factory interfaces (see "Selecting the interfaces to be used" in BeanConnect-specific interfaces and Common Client Interface (CCI) ) in the <connection-factory-interface>
element of the deployment descriptor file weblogic-ra.xml:
net.fsc.jca.communication.cci.BCOltpConnectionFactory
net.fsc.jca.communication.cci.BCUpicConnectionFactory
(only if the EIS partner is an UTM application)
In your EJB code, you use a connection factory to set up a connection. CCI provides the following connection factory interfaces:
javax.resource.cci.ConnectionFactory
net.fsc.jca.communication.cci.BCOltpConnectionFactory
net.fsc.jca.communication.cci.BCUpicConnectionFactory
(only if the EIS partner is an UTM application)
The BCOltpConnectionFactory
interface and the BCUpicConnectionFactory
interface extend the javax.resource.cci.ConnectionFactory
interface without providing additional functionality.
Using the BCOltpConnectionFactory
or BCUpicConnectionFactory
interface makes sense if you want to verify that communication is processed via the OSI-TP or UPIC protocol respectively. Example 11 on Defining a UPIC connection for outbound communication between the UTM partner and BeanConnect (BC UG, #185) applies analogously. It is recommended that you use the interface javax.resource.cci.ConnectionFactory
.
Connection interface
The CCI interface for the outbound communication is javax.resource.cci.Connection
.