Originally posted by Vishal Patole
If TCL proc can executes xlates, we could take Cloverleaf implementations to next level
Cloverleaf requires you to recycle the process or purge what is running in memory to reload new changes in memory.Okay dynamically calling a xlate via TCL say using a lookup table would possibly get around this reloading requirement, but now you might be hit with slowness from loading the xlate into memory with each message translated which is a possible trade off to keep in mind.
Originally posted by Terry Kellum
Jim Kosloskey wrote:One of the reasons it is taking so long is none of the engine provided caching is taking place.If you run the same Xlate inside Cloverleaf instead of inside your harness
Jim Kosloskey wrote:
Terry Kellum wrote:If the needed translate is provided in the data stream, you could use a trxid proc to determine which translate to call by a route.
Terry Kellum wrote:
# the newRoute variable is different for raw vs Xlate:# (Xlate requires defining variable xltSpec)## set newRoute "{ { DEST $destConn } # { PROCS {{ARGS {{}} } { PROCS {} } } } # { TYPE raw } }"### set newRoute "{ { DEST $destConn } # { POSTPROCS { { ARGS {} } { PROCS {} } } } # { PREPROCS { { ARGS {} } { PROCS {} } } } # { TYPE xlate } # { XLATE $xltSpec } }"
set destConn "" set destConn [tbllookup $utable $lookup] if { ![cequal $destConn "TBD"] } { set newRoute "{ { DEST $destConn } { PROCS {{ARGS {{}} } { PROCS {} } } } { TYPE raw } }" msgrouteset $msgId $newRoute lappend dispList "CONTINUE $msgId" echo "routed message to $destConn" } else { set errMsg "Data msg does not have an outbound value in $utable for a lookup (input) value of $lookup" msgmetaset $msgId USERDATA "{MSG $errMsg}" lappend dispList "ERROR $msgId" echo "errored message because of no known destination ($destConn)" }
Rob Lindsey wrote:I truly think that this can be done via two threads with a generate route.
Rob Lindsey wrote: