cancel
Showing results for 
Search instead for 
Did you mean: 

overwritten event callback function does not work

leguan
New Contributor III

Hello Everyone, 

I am doing a  small project which monitors all in-coming connections to kx-platform, and customized biz logic would be executed through call-back functions.

I overwrote several event callback functions according to https://code.kx.com/platform/stream/messaging/#event-callbacks, load them to q process along with a customized a INSTANCE_CONFIG file. 

Taking .dm.cb.connect for example,  after hopen is called from a caller process, overwritten function should be called and corresponding logging messages should have been printed out, yet it seems overwritten function did not work. It is the same to other overwritten functions. Please let me know if you have any thoughts , thank you!

best,

leguan

3 REPLIES 3

LeahS
Moderator Moderator
Moderator

Thanks @leguan 

Also interested to hear people's ideas here. 

leguan
New Contributor III

Hello Everyone,   the attached is exported package which includes a single example that shows the basic idea of this post.   Please have a try (rename the attachment to pkg_evntCallBck.zip and import this into kxplatform) and let me know if you can make overwritten function works  

There are two instances in this example, both of them loads overwritten event call back functions during start up.  A test case could be:  hopen from one to the other and observe whether event functions are called. 

best,

leguan  

(removed post - noticed this is specifically kx platform so my issue is not related)