Factory Objects 

Use

Factory objects are used for obtaining other objects. The com.sap.rfc package includes the following five factory objects:

Factory

Creates the Object

Representing

IRfcConnectionFactory

IRfcConnection objects

RFC connections

IRfcModuleFactory

IRfcModule objects

RFC function modules

ISimpleFactory

ISimple objects

single-valued RFC parameters

IStructureFactory

IStructure objects

structured RFC parameters

ITableFactory

ITable objects

RFC table parameters

IServerFunctionFactory

IServerFunction objects

RFC server function objects

Integration

Both the SessionManager and the FactoryManager objects can obtain the same five factory objects.

 

Use the SessionManager for obtaining the factory objects when using a single connection in client applications.

When using a single connection you do not need to use an IRfcConnection object. Therefore you do not usually need to obtain the IRfcConnectionFactory from the SessionManager.

Use the FactoryManager for obtaining the factory objects, including IRfcConnectionFactory, when using multiple connections.

See Also

See the Java RFC HTML Reference documentation for the details of each of the classes and interfaces.