Hi,
I made a class string OracleFunc (String conn, string param1, string param2) in a new routine to encapsulate a Oracle PLSQL function. I need this function in a tMap, that's why I don't want to use the component tOracleSP.
At the begining of the job, before my tOracleInput, I open a connection with a tOracleConnect, and I would like to re-use this connection in my class instead of opening a new hard-coded connection at each call of the function.
Apparently the connection defined at the beginning of the job is stored in the GlobalMap in the Job main class.
So let's imagine a class looking like that :
public static String Oracle_func (String conn, String parm1, String parm2) {
}
the GlobalMap is not resolved, what sould I do to see it it from my class ?
I'm beginner with java, if my question is not clear, please, feel free to ask for more details.
Thanks for your attention,
Regards,
Sylvain
Hello,
The globalMap is not accessible from the routine (these are 2 independant units).
You may pass the globalMap as a parameter of your routine.
HTH,
Hello,
Can you tell me How to pass globalMap as parameter to Routine from tJava???
Is it possible??
or how do i make the statement
"String filename = ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")) ; "
working in a routine. Because i read globalMap can't be used in Routine.