You use a connection factory to set up a connection. BeanConnect provides the following connection factory interfaces:
EISConnectionFactoryEISOltpConnectionFactoryEISUpicConnectionFactory(only if the EIS partner is an UTM application)
The EISOltpConnectionFactory interface and the EISUpicConnectionFactory interface extend the EisConnectionFactory interface without providing additional functionality.
Using the EISOltpConnectionFactory or EISUpicConnectionFactory interface makes sense if you want to make sure that communication is processed by means of the OSI-TP protocol or the UPIC protocol, respectively.
The use of the EISConnectionFactory interface is recommended.
Example 5 Verifying that the OSI-TP protocol is used for communication (UTM partner)
To verify that communication with the EIS application is processed by means of the OSI TP protocol specify the following code sequence:
...
net.fsc.jca.communication.EISConnectionFactory cf =
(EISConnectionFactory)ic.lookup
("java:comp/env/<resourceRefName>");
...
if (! (cf instanceof EISOltpConnectionFactory))
throw new Exception("EISOltpConnectionFactory was
expected!");
...
An exception is thrown if not the OSI-TP protocol is used for communication.