G
Guest
I have just started using VB.Net and I am developing a class to provide data
to clients from an IBM-MQ queue.
I have developed a class which connects to the queue and issues a read. When
a message comes in an event is raised back to the client containing (at the
moment) only the message id.
This all works fine but the MQ read call blocks and prevents other processing.
To overcome this I have created the object and then start the listening in a
thread. The MQ session object is created but then the first call to any
property on that object causes and InvalidCastException to the be thrown from
within QueryInterface.
Any advice much appreciated.
to clients from an IBM-MQ queue.
I have developed a class which connects to the queue and issues a read. When
a message comes in an event is raised back to the client containing (at the
moment) only the message id.
This all works fine but the MQ read call blocks and prevents other processing.
To overcome this I have created the object and then start the listening in a
thread. The MQ session object is created but then the first call to any
property on that object causes and InvalidCastException to the be thrown from
within QueryInterface.
Any advice much appreciated.