Messaging.MessageType| Constructor and Description |
|---|
MessagingImpl(String fedoraBaseUrl,
Map<String,List<String>> mdMap,
JMSManager jmsMgr) |
MessagingImpl(String fedoraBaseUrl,
Map<String,List<String>> mdMap,
Properties jndiProps)
Required JNDI Properties:
INITIAL_CONTEXT_FACTORY
PROVIDER_URL
Optional JNDI Properties:
CONNECTION_FACTORY_NAME
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shutdown and/or close any resources and/or connections.
|
void |
send(FedoraMethod method)
Send a message to each of the destinations configured for each
Messaging#MessageType. |
void |
send(String destName,
FedoraMessage message)
Send the
FedoraMessage to the specified destination. |
void |
send(String destName,
FedoraMethod method,
FedoraMessage message) |
public MessagingImpl(String fedoraBaseUrl, Map<String,List<String>> mdMap, Properties jndiProps) throws MessagingException
fedoraBaseUrl - e.g. http://localhost:8080/fedoramdMap - a Map of Messaging#MessageType to
Destinations.jndiProps - the JNDI configuration properties.MessagingExceptionpublic void send(String destName, FedoraMessage message) throws MessagingException
MessagingFedoraMessage to the specified destination.send in interface MessagingdestName - The destination of the message.message - The message to send.MessagingExceptionpublic void send(String destName, FedoraMethod method, FedoraMessage message) throws MessagingException
MessagingExceptionpublic void send(FedoraMethod method) throws MessagingException
Messaging#MessageType. Currently, only
FedoraMethods that represent
org.fcrepo.server.Management methods are supported.
Send a message representing the FedoraMethod.
The message representation and destination(s) are determined by the
implementing class.send in interface Messagingmethod - The method to send.MessagingExceptionpublic void close()
throws MessagingException
Messagingclose in interface MessagingMessagingExceptionCopyright © 2013 DuraSpace. All Rights Reserved.