Deal with multiple clients and only one transport in tick42blp bridge

macrux
 

Hi there,

I'm working with Bloomberg and the tick42blp bridge, and I have an application which starts multiple clients, each one in a different thread, and each one can be subscribed to different subjects. I had a problem, when the second client started, it failed because the transport with that name (blp_tport) had been already created when the first client started. Then I decided to make the transport static so all clients can use the same instance, but I am not able to destroy the transport until the last client is closed, otherwise, clients that are using the transport will fail.

My question is if this is the correct approach to deal with this situation, or there is a better one?

Thanks in advance for any help you could give me.

Kind regards,

Nestor.

Join Openmama-users@lists.openmama.org to automatically receive all group messages.