mule

How to Compress/Decompress payload in Mule and get back original payload

大城市里の小女人 提交于 2020-01-06 18:57:32
问题 I was doing some sort of POC with Mule Gzip compressor and de-compressor.. My Mule flow is following <flow name="GZipCompress" doc:name="GZipFlow1"> <file:inbound-endpoint path="E:\backup\test" responseTimeout="10000" doc:name="File"> <file:filename-regex-filter pattern="anirban.doc" caseSensitive="false"/> </file:inbound-endpoint> <string-to-byte-array-transformer doc:name="String to Byte Array"/> <gzip-compress-transformer/> <file:outbound-endpoint path="E:\backup\test\ss" responseTimeout=

Retry JMS queue implementation to deliver failed messages after certain interval of time

江枫思渺然 提交于 2020-01-06 16:24:26
问题 I am sending the SOAP messages to external service using webservice call. Sometimes external webservice is down so I don't want to lose those failed messages. I push those failed messages to one jms queue designated as retry queue. Now my requirement is that I have to implement a mechanism to process failed messages from retry queue after some time(lets say half an hour) and try to deliver again to webservice. I should be using fix number of attempts at the interval of half an hour. If I don

Retry JMS queue implementation to deliver failed messages after certain interval of time

萝らか妹 提交于 2020-01-06 16:22:23
问题 I am sending the SOAP messages to external service using webservice call. Sometimes external webservice is down so I don't want to lose those failed messages. I push those failed messages to one jms queue designated as retry queue. Now my requirement is that I have to implement a mechanism to process failed messages from retry queue after some time(lets say half an hour) and try to deliver again to webservice. I should be using fix number of attempts at the interval of half an hour. If I don

Mule: Connect to HTTPS site and pull files

安稳与你 提交于 2020-01-06 14:46:35
问题 I am trying to set up Quartz to initiate processing which will connect to a HTTPS endpoint in order to pull files from a directory. The HTTPS endpoint will try to redirect for authentication so I am trying to set up for this. I have a self signed keystore for the HTTPS connector. This is currently deploying but I am unsure if this is the correct method and if so how to then pull the files from the endpoint. <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:json="http://www.mulesoft.org

Mule: Connect to HTTPS site and pull files

喜欢而已 提交于 2020-01-06 14:46:00
问题 I am trying to set up Quartz to initiate processing which will connect to a HTTPS endpoint in order to pull files from a directory. The HTTPS endpoint will try to redirect for authentication so I am trying to set up for this. I have a self signed keystore for the HTTPS connector. This is currently deploying but I am unsure if this is the correct method and if so how to then pull the files from the endpoint. <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:json="http://www.mulesoft.org

what should be the return value for transformMessage method in mule

廉价感情. 提交于 2020-01-06 14:35:16
问题 In my mule flow I am reading the message form WMQ using WMQ node and then calling a Java class using Java node for required processing of the message. For the same I have to override the public Object transformMessage(MuleMessage message, String outputEncoding) method. This method is forcing me to return value but I don't require to send any object back. Can someone please help me to understand what I need to return and why we have to return the value. Cheers! 回答1: First thing first, if you

JMS Message Selector in Mule using date

血红的双手。 提交于 2020-01-06 14:08:21
问题 In Mule 3.3.1, during async processing, when any of my external services are down, I would like to place the message on a queue ( retryQueue ) with a particular "next retry" timestamp. The flow that processes messages from this retryQueue selects messages based on "next retry" time as in if "next retry" time is past current time, select the message for processing. Similar to what has been mentioned in following link. Retry JMS queue implementation to deliver failed messages after certain

Is there a way to connect to https server by specifying only the url in Mule 2?

你离开我真会死。 提交于 2020-01-06 14:02:02
问题 When I run this: <?xml version="1.0" encoding="UTF-8"?> <mule xmlns="http://www.mulesource.org/schema/mule/core/2.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:http="http://www.mulesource.org/schema/mule/http/2.2" xmlns:https="http://www.mulesource.org/schema/mule/https/2.2" xsi:schemaLocation=" http://www.mulesource.org/schema/mule/http/2.2 http://www.mulesource.org/schema/mule/http/2.2/mule-http.xsd http://www.mulesource.org/schema/mule/https/2.2 http://www.mulesource.org

Very dynamic JDBC query in Mule

泄露秘密 提交于 2020-01-06 11:13:23
问题 I'm trying to create a flow in Mule that allow queries in a table with a dynamic where-statement. The idea is to send a map of parameters with zero or more entries and then build a query string from that. I use hsqldb for testing and get some strange errors about unexpected token. Here is the flow: <script:transformer name="extractParameters"> <script:script file="extractParameters.groovy" engine="groovy"/> </script:transformer> <flow name="datafetch.flow"> <vm:inbound-endpoint address="vm:/

Mule splitter using regex returned no results

吃可爱长大的小学妹 提交于 2020-01-06 08:21:18
问题 I'm trying to split a csv file on lines. For this, I've tried alternatively with the following splitters on my flow: <splitter expression="#[regex('^')]" doc:name="Splitter"/> <splitter expression="#[regex('\n')]" doc:name="Splitter"/> <splitter expression="#[regex('.*')]" doc:name="Splitter"/> However, though the file has many lines, I'm getting the following message on the logs: Splitter returned no results. If this is not expected, please check your split expression 回答1: Finally, I found a