IBCAlerter in a Service Application
Posted: Fri 02 Oct 2009 14:13
Hello,
Has anyone tried to use a TIBCAlerter in a service application? It works in a regular application, but not in a service application. As far as I can see in the source code the callback function "EventCallback" is not called, when an event is fired in the database.
Thats how I setup the component:
In the service there are some worker threads, each of them has its own TIBCConnection and TIBCAlerter. In the beginning of the Execute method of each thread is the following:
myConnection.Connect;
myAlerter.Connection:= myConnection;
myAlerter.OnEvent:= myAlerter.myAlerterEvent;
myAlerter.Stop;
myAlerter.Events.Text:= 'Sync';
myAlerter.Start;
Is this the right way? I've done this in a regular application and it works.
In the service application I can see that the callback function EventCallback is called once at the start of each thread, but when an event is posted from the database, this callback function is not called and the OnEvent is not fired.
Thank you
Has anyone tried to use a TIBCAlerter in a service application? It works in a regular application, but not in a service application. As far as I can see in the source code the callback function "EventCallback" is not called, when an event is fired in the database.
Thats how I setup the component:
In the service there are some worker threads, each of them has its own TIBCConnection and TIBCAlerter. In the beginning of the Execute method of each thread is the following:
myConnection.Connect;
myAlerter.Connection:= myConnection;
myAlerter.OnEvent:= myAlerter.myAlerterEvent;
myAlerter.Stop;
myAlerter.Events.Text:= 'Sync';
myAlerter.Start;
Is this the right way? I've done this in a regular application and it works.
In the service application I can see that the callback function EventCallback is called once at the start of each thread, but when an event is posted from the database, this callback function is not called and the OnEvent is not fired.
Thank you