Bug 1101327 - Add messages to JMS queue when topics and specs are updated
Summary: Add messages to JMS queue when topics and specs are updated
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: PressGang CCMS
Classification: Community
Component: CCMS-Core
Version: 1.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 1.6
Assignee: Matthew Casperson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-26 23:30 UTC by Matthew Casperson
Modified: 2014-08-04 22:28 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-28 21:56:26 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.