public class MessageSenderResource extends java.lang.Object implements MessageSender
| Constructor and Description |
|---|
MessageSenderResource() |
| Modifier and Type | Method and Description |
|---|---|
void |
init()
Initialize the sender resource.
|
void |
send(java.util.HashMap header,
java.lang.Object value)
Sends a message to the destination
|
void |
setConnectionFactory(ConnectionFactory factory)
Sets the JMS connection factory.
|
void |
setDestination(Destination destination)
Sets the JMS Destination (Queue or Topic)
|
java.lang.String |
toString() |
public void setConnectionFactory(ConnectionFactory factory)
factory - public void setDestination(Destination destination)
destination - @PostConstruct public void init() throws JMSException, ConfigException
JMSExceptionConfigExceptionpublic void send(java.util.HashMap header,
java.lang.Object value)
throws MessageServiceException
send in interface MessageSenderheader - value - MessageServiceExceptionpublic java.lang.String toString()
toString in class java.lang.Object