Alfresco Java SDK is compatible with Alfresco Event Gateway. For more information on Alfresco Event Gateway, see the Event Gateway section in the Alfresco Content Services documentation.
Using the Alfresco Event Gateway REST API, extensions can manage the lifecycle of an event subscription. For example, an out-of-process extension may create a subscription (see Creating a subscription) to receive certain types of events in a specific topic of an ActiveMQ broker.
The ActiveMQ broker can be different from the one used by the Alfresco Repository and is configured in both the out-of-process extension and the Event Gateway.
To work with the Gateway ReST API Java Wrapper in your extension project, add this dependency to your project’s POM:
<dependency>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-event-gateway-api</artifactId>
<version>6.2.0</version>
</dependency>