I did that Jim, but I’m not getting the connection name. For instance, if my process name is “test”, then I’m getting the following as my connection name:
test_xlate
I’m assuming that since this is now in the xlate portion of the engine, that the HciConnName global is reset somehow. I would imagine that the original sending thread is out there somewhere, but not sure where or how to access it.
I’ve tried that as well but am getting the error stating it can’t find the message handle. I guess I better explain what I’m trying to do.
The proc that I have set as a pre-proc before the xlate that does connectivity via ODBC. There are things that are run at start up to connect to the database. The variables that are set there are passed globally to some call outs from an xlate. The run section just passes the message through. I have it all pretty much working like I want.
However, there is error checking in place to shutdown the thread if it meets certain criteria, (ie. can’t reach the database or the replicated database). Since there may not be a message when I start up, it can’t find the message handle.
Is there another way to get the SOURCECONN from within the translate thread? Or, is there a way to move that proc to the IB TPS and still have any global variable available to me when I attempt to access them in the translate thread? I’ve tested the second one and it appears the global variable value is lost.
If I bounce the process and no messages are queued up, then there isn’t a message handle….correct? The message handle is being set but the proc chokes on it because it can’t find the mh variable. I do have it set as a global as well.
I would guess the best thing to do at this point is to pass the connection name in as a user argument.
Thanks…Tom
Author
Replies
Viewing 5 reply threads
The forum ‘Cloverleaf’ is closed to new topics and replies.