Bug 1101327

Summary: Add messages to JMS queue when topics and specs are updated
Product: [Community] PressGang CCMS Reporter: Matthew Casperson <mcaspers>
Component: CCMS-CoreAssignee: Matthew Casperson <mcaspers>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.5CC: cbredesen, lnewson
Target Milestone: ---   
Target Release: 1.6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-28 21:56:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matthew Casperson 2014-05-26 23:30:24 UTC
See BZ#1090748 for the original description.

This feature implements the following:

* Creation of new topics via an XML file packed with the WAR
* An EJB that schedules queries of the database to find updated entities, pushing their IDs to the JMS topics
* The EBJ should also send a message that indicates that the server was just booted

Comment 1 Lee Newson 2014-05-27 01:48:41 UTC
Verified:

- There is a "jmsUpdateFrequency" property returned in the server settings and it can be changed.
- The "jmsUpdateFrequency" setting changes the update frequency of the EJB.
- Messages are sent when a topic is changed
- Messages are sent when a content spec is changed

Comment 2 Lee Newson 2014-05-27 02:42:59 UTC
The native search query forces the use of the "Skynet" schema. This is not enforced anywhere else so it should be done here either.

Comment 3 Lee Newson 2014-05-27 03:06:36 UTC
I've removed the native query in favour of the HQL Query:

"SELECT MAX(id) FROM LoggingRevisionEntity" which means hibernate/envers will handle the schema and although there shouldn't be any, changes required for different RDBMS's.

Comment 4 Lee Newson 2014-05-27 03:30:48 UTC
Verified:

- The "SERVER_RESTART" message gets sent to both topic queues when the server is started.
- The JMS Topic Queues are loaded from the pressgang-jms.xml file in WEB-INF.