OracleQueue Events never fire

OracleQueue Events never fire

Postby jtoland » Mon 16 Jan 2017 20:02

I'm using the provided examples and cant get the onMessage events to ever fire. I'm using Oracle 11.2.0.2
jtoland
 
Posts: 1
Joined: Mon 16 Jan 2017 19:57

Re: OracleQueue Events never fire

Postby Pinturiccio » Tue 17 Jan 2017 15:04

The OnMessage event fires only if the AsyncNotification property is true. For more information, please refer to https://www.devart.com/dotconnect/oracle/docs/?Devart.Data.Oracle~Devart.Data.Oracle.OracleQueue~OnMessage_EV.html

Additionally, it’s recommended to put the thread to sleep for a short time after the Enqueue method call in order to let the OnMessage event handler to work. For example, add the line Thread.Sleep(1000); after the Enqueue call.

If this information didn’t help you, send us a small test project for reproducing the issue.
Pinturiccio
Devart Team
 
Posts: 1997
Joined: Wed 02 Nov 2011 09:44


Return to dotConnect for Oracle