Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi David,
I think you can probably use thissolution for doing the same thing with DB Connections. Instead of using the following code....
if(!context.UseSID){
java.sql.Connection conn_tOracleConnection_2 = (java.sql.Connection)globalMap.get("conn_tOracleConnection_2");
globalMap.put("conn_tOracleConnection_1",conn_tOracleConnection_2);
}
....it would be something along the lines of this...
if(!context.UseSID){
com.enterprisedt.net.ftp.FTPClient ftp_tFTPConnection_2 = (java.sql.Connection)globalMap.get("conn_tFTPConnection_2");
globalMap.put("conn_tFTPConnection_1",ftp_tFTPConnection_2);
}
I'd be interested to know if this works. Looking at the code it should, but I haven't been able to test it as I don't have access to the required ftp locations.
This is great! It dynamically changes the "use existing connection" value for all of the ftp components in the job from one fFTPConnection to another.