public class JMSTopicPublisher extends Object
| Modifier and Type | Field and Description |
|---|---|
protected javax.jms.Session |
jmsSession |
| Constructor and Description |
|---|
JMSTopicPublisher()
Create a JMS Topic with the default name of "fedora"
|
| Modifier and Type | Method and Description |
|---|---|
void |
acquireConnections()
Connect to JCR Repostory and JMS queue
|
protected javax.jms.Destination |
createDestination() |
void |
publishJCREvent(FedoraEvent fedoraEvent)
When an EventBus mesage is received, map it to our JMS
message payload and push it onto the queue.
|
void |
releaseConnections()
Close external connections
|
protected javax.jms.Session jmsSession
public JMSTopicPublisher()
protected javax.jms.Destination createDestination() throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void publishJCREvent(FedoraEvent fedoraEvent) throws javax.jms.JMSException
fedoraEvent - the fedora eventjavax.jms.JMSException - if JMS exception occurred@PostConstruct public void acquireConnections() throws javax.jms.JMSException
javax.jms.JMSException - if JMS Exception occurred@PreDestroy public void releaseConnections() throws javax.jms.JMSException
javax.jms.JMSException - if JMS exception occurredCopyright © 2013–2018 DuraSpace, Inc.. All rights reserved.