You not need to create a connection factory or specify the JNDI name of the resource adapter, because these are already specified in the deployment descriptor for the connection factory, weblogic-ra.xml.
Note: The resource adapter must be deployed on a machine where either Enterprise Server or your COBOL development system is installed.