cancel
Showing results for 
Search instead for 
Did you mean: 

event gatewway subscription is removed on shutdown

araghuraman
Champ in-the-making
Champ in-the-making
Hi,

I have an event gateway which is waiting for a message to arrive or trigger of an alarm, whichever is first.
The alarm is comfortably far off for our testing purposes. I checked that activiti database and there was one
record in the act_ru_event_subscr table corresponding to this event gateway.
At this point I shutdown the JVM running the activiti engine. I look in the activiti database again; this time
that one record in act_ru_event_subscr table is gone and the table is empty.
What is removing the event subscription from the database table when the JVM is shutdown?
How can I fix this?
1 REPLY 1

vasile_dirla
Star Contributor
Star Contributor
Hi,
this happens only when you shutdown the JVM or it happens also when you shutdown the engine?

if it happens also when you close the engine just locate this method:
<code>
public void deleteEventSubscriptionsForProcessDefinition(String processDefinitionId) {
   getDbSqlSession().delete("deleteEventSubscriptionsForProcessDefinition", processDefinitionId);
  }
</code>
into EventSubscriptionEntityManager.java
put a breakpoint here and try to close the engine. (if the execution will stop into this breakpoint you'll see the stacktrace)
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.