OracleQueue Events never fire

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
jtoland
Posts: 1
Joined: Mon 16 Jan 2017 19:57

OracleQueue Events never fire

Post by 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

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Re: OracleQueue Events never fire

Post by 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/oracl ... ge_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.

Post Reply