Package com.espertech.esperio.jms
Class SpringJMSTemplateOutputAdapter
java.lang.Object
com.espertech.esperio.jms.JMSOutputAdapter
com.espertech.esperio.jms.SpringJMSTemplateOutputAdapter
- All Implemented Interfaces:
com.espertech.esper.runtime.client.util.Adapter
,com.espertech.esper.runtime.client.util.AdapterSPI
Output adapter for sending runtime events out into the JMS world using Spring JMS templates.
-
Field Summary
Fields inherited from class com.espertech.esperio.jms.JMSOutputAdapter
destination, jmsMessageMarshaller
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.jms.core.JmsTemplate
Returns the jms template.void
send
(com.espertech.esper.common.client.EventBean eventBean, JMSMessageMarshaller jmsMessageMarshaller) Abstract send methods for marshalling and sending an event of to JMS care.void
setJmsTemplate
(org.springframework.jms.core.JmsTemplate jmsTemplate) Sets the Spring JMS templateMethods inherited from class com.espertech.esperio.jms.JMSOutputAdapter
destroy, getJmsMessageMarshaller, getRuntime, getState, pause, resume, setDestination, setJmsMessageMarshaller, setRuntime, setSubscriptionMap, start, stop
-
Constructor Details
-
SpringJMSTemplateOutputAdapter
public SpringJMSTemplateOutputAdapter()
-
-
Method Details
-
getJmsTemplate
public org.springframework.jms.core.JmsTemplate getJmsTemplate()Returns the jms template.- Returns:
- Spring JMS template
-
setJmsTemplate
public void setJmsTemplate(org.springframework.jms.core.JmsTemplate jmsTemplate) Sets the Spring JMS template- Parameters:
jmsTemplate
- to set
-
send
public void send(com.espertech.esper.common.client.EventBean eventBean, JMSMessageMarshaller jmsMessageMarshaller) throws com.espertech.esper.common.client.EPException Description copied from class:JMSOutputAdapter
Abstract send methods for marshalling and sending an event of to JMS care.- Specified by:
send
in classJMSOutputAdapter
- Parameters:
eventBean
- is the eventjmsMessageMarshaller
- is the marshaller- Throws:
com.espertech.esper.common.client.EPException
- when the send failed
-