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