How to connect an Esper Listener with a Web Service using a VM component
Hello,
I need to connect an Esper Technology Listener and a Web Service, so, I decided to use, for example, a VM component.
Specifically, I need to create new events from the Esper Listener and then send them to the web service.
I know to use the Mule Client in a MuleContext. I've tried in an specific class and it works perfectly, but
when I try to catch events which were sent from the Esper Listener it fails.
I think this happens because of the MuleContext.
So, my question is: What do I need for this to work?
I show the Mule Configuration File below:
-----
<?xml version="1.0" encoding="UTF-8"?>
(...)
<spring:beans>
<spring:bean id="jdbcDataSource" class="org.enhydra.jdbc.standard.StandardDataSource"
destroy-method="shutdown" doc:name="Bean">
<spring:property name="driverName" value="com.mysql.jdbc.Driver"/>
<spring:property name="url" value="jdbc:mysql://localhost/test"/>
</spring:bean>
</spring:beans>
<jdbc:connector name="JDBC_Connector" dataSource-ref="jdbcDataSource"
validateConnections="false" queryTimeout="10" pollingFrequency="10000" doc:name="Database (JDBC)">
<jdbc:query key="Guardar_Pachube" value="INSERT INTO meteo (fecha, temperatura, luz, humedad,
ruido, diox_carb, monox_carb, calidad_aire) VALUES (#[groovy:payload.timestamp],
#[groovy:payload.temperature], #[groovy:payload.light], #[groovy:payload.humidity],
(Continue reading)