
org.fcrepo.jms.JMSQueuePublisher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fcrepo-jms Show documentation
Show all versions of fcrepo-jms Show documentation
The Fedora Commons repository JMS module: Provides repository event publication via Java Message Service.
The newest version!
/*
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree.
*/
package org.fcrepo.jms;
import javax.jms.Destination;
import javax.jms.JMSException;
/**
* Machinery to publish JMS messages when an EventBus
* message is received.
*
* @author barmintor
* @author awoods
*/
public class JMSQueuePublisher extends AbstractJMSPublisher {
private final String queueName;
/**
* Create a JMS Topic with the default name of "fedora"
*/
public JMSQueuePublisher() {
this("fedora");
}
/**
* Create a JMS Topic with a configurable name
*
* @param queueName the name of the queue
*/
public JMSQueuePublisher(final String queueName) {
this.queueName = queueName;
}
protected Destination createDestination() throws JMSException {
return jmsSession.createQueue(queueName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy