@Service @Transactional(value="herdTransactionManager") public class JmsPublishingServiceImpl extends Object implements JmsPublishingService
| Constructor and Description |
|---|
JmsPublishingServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
JmsMessage |
addJmsMessageToDatabaseQueue(String jmsQueueName,
String messageText)
Adds a JMS message to the database queue.
|
protected JmsMessage |
addJmsMessageToDatabaseQueueImpl(String jmsQueueName,
String messageText)
Adds a JMS message to the database queue.
|
boolean |
publishOldestJmsMessageFromDatabaseQueue()
Publishes and removes from the database queue the oldest JMS message.
|
protected boolean |
publishOldestJmsMessageFromDatabaseQueueImpl()
Publishes and removes from the database queue the oldest JMS message.
|
@Transactional(propagation=REQUIRES_NEW) public JmsMessage addJmsMessageToDatabaseQueue(String jmsQueueName, String messageText)
addJmsMessageToDatabaseQueue in interface JmsPublishingServicejmsQueueName - the JMS queue namemessageText - the message text@Transactional(propagation=REQUIRES_NEW) public boolean publishOldestJmsMessageFromDatabaseQueue()
publishOldestJmsMessageFromDatabaseQueue in interface JmsPublishingServiceprotected JmsMessage addJmsMessageToDatabaseQueueImpl(String jmsQueueName, String messageText)
jmsQueueName - the JMS queue namemessageText - the message textprotected boolean publishOldestJmsMessageFromDatabaseQueueImpl()
Copyright © 2017. All rights reserved.