public class JMSResource
extends java.lang.Object
Constructor and Description |
---|
JMSResource() |
Modifier and Type | Method and Description |
---|---|
Destination |
getDestination() |
JmsTemplate |
getTemplate() |
void |
sendTextMessage(java.lang.String message)
Subclasses can use this method to send a message out over JMS.
|
void |
setDestination(Destination destination)
Called by spring
|
void |
setTemplate(JmsTemplate template)
Called by spring
|
public void setDestination(Destination destination)
destination
- the destination to setpublic void setTemplate(JmsTemplate template)
template
- the template to setpublic Destination getDestination()
public JmsTemplate getTemplate()
public void sendTextMessage(java.lang.String message) throws JmsException
message
- The message to sendJmsException
- If there was a problem when sending the message.