com.espertech.esperio.jms
Class SpringJMSTemplateOutputAdapter

java.lang.Object
  extended by com.espertech.esperio.jms.JMSOutputAdapter
      extended by com.espertech.esperio.jms.SpringJMSTemplateOutputAdapter
All Implemented Interfaces:
com.espertech.esper.adapter.Adapter, com.espertech.esper.adapter.AdapterSPI, com.espertech.esper.adapter.OutputAdapter

public class SpringJMSTemplateOutputAdapter
extends JMSOutputAdapter

Output adapter for sending engine 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
SpringJMSTemplateOutputAdapter()
           
 
Method Summary
 org.springframework.jms.core.JmsTemplate getJmsTemplate()
          Returns the jms template.
 void send(com.espertech.esper.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 template
 
Methods inherited from class com.espertech.esperio.jms.JMSOutputAdapter
destroy, getEPServiceProvider, getJmsMessageMarshaller, getState, getSubscription, getSubscriptionMap, pause, resume, setDestination, setEPServiceProvider, setJmsMessageMarshaller, setSubscriptionMap, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringJMSTemplateOutputAdapter

public SpringJMSTemplateOutputAdapter()
Method Detail

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.client.EventBean eventBean,
                 JMSMessageMarshaller jmsMessageMarshaller)
          throws com.espertech.esper.client.EPException
Description copied from class: JMSOutputAdapter
Abstract send methods for marshalling and sending an event of to JMS care.

Specified by:
send in class JMSOutputAdapter
Parameters:
eventBean - is the event
jmsMessageMarshaller - is the marshaller
Throws:
com.espertech.esper.client.EPException - when the send failed

© 2006-2016 EsperTech Inc.
All rights reserved.
Visit us at espertech.com