mule-el

ObjectStore connector retrieve issue in mule

ε祈祈猫儿з 提交于 2019-12-12 03:47:29
问题 I have one flow(A) with poll as source with transformation logic and storing result data in Mule Object Store Connector by overwriting latest value. Whenever I tried to retrieve(Using ObjectStore connector) the value in another flow(B). Note : Flow(B) is not called from flow A. I am able to get the value out of it for the first time. For the next time whenever It polls we should get the latest value and we are getting latest value in Flow A. whenever we are retrieving(Using ObjectStore

Mule ESB: Are the Log4j Config for Batch in Mule need separate configuration?

≡放荡痞女 提交于 2019-12-11 22:50:13
问题 I have log4j config file, it seems to be working for normal flows, but when comes to batch it is not working, not sure what has to added in config file in specific to batch. Please help on this issue <appender name="FILE" class="org.apache.log4j.RollingFileAppender"> <param name="file" value="C:\Users\Logs.log" /> ............ <layout class="org.apache.log4j.PatternLayout"> </layout> <filter class="org.apache.log4j.varia.LevelRangeFilter"> <param name="LevelMin" value="INFO" /> <param name=

How to Extract the value of resultSet returned from JDBC response (Via MEL) Mule ESB

我只是一个虾纸丫 提交于 2019-12-11 21:36:56
问题 I have JDBC where I'm calling the stored Procedure, It is returning the response as below, But I'm pretty not sure how to extract the value of result set Please find the response from DB {updateCount1=4,resultSet1=[{XML_F5RYI-11YTR=<Customers><Customer1>John<Customer1><Customer2>Ganesh<Customer2><Customers>}],resultSet2[{SequenceNumber=94}],updateCount2=1, updateCount3=4} I have used the this expression #[message.payload.get(0)] , It has return the ResultSet as below, But not exactly value

Blocking=“false” is not working in JDBC Reconnection in 3.4.2

亡梦爱人 提交于 2019-12-11 19:26:02
问题 In JDBC Reconnection strategy implemented blocking as false.. so when we try to deploy the application, even though JDBC connection fails applicaion should be deployed.But Application is not getting deployed in server. Following is the xml code <jdbc-ee:connector name="FTPDatabase" dataSource-ref="MySQL_FTP_Data_Source" validateConnections="true" queryTimeout="-1" pollingFrequency="0" doc:name="Database"> <reconnect blocking="false" frequency="10000" count="3"/> </jdbc-ee:connector> 回答1: In

How to use Mule Expression in JMS:selector

依然范特西╮ 提交于 2019-12-11 12:23:49
问题 I checked several previous discussions but couldnt find the answer. I am trying to achieve synchronous communicaiton using JMS back-channel (http://www.whishworks.com/blog/synchronous-communication-using-jms-back-channel). Apart from the things mentioned in that site, I need to filter out the message from the inbound queue based on a dynamic Id. Following are my mule flows: <flow name="serverFlow" > <jms:inbound-endpoint doc:name="REQUEST" queue="REQUEST.QUEUE" connector-ref="jmsConnector">

how to use value of #[server.dateTime.weekOfYear] in mule-app.properties or configuration xml

空扰寡人 提交于 2019-12-11 09:23:46
问题 I am downloading files from FTP. I am able to download files with defined patterns or defined name and pass then process these files in Java. Problem I am facing is that I need to download a new file every week. The file name is like "constant-prefix-2013-W51.zip" . My current XML is like this; <ftp:inbound-endpoint host="${ftp.host}" port="${ftp.port}" path="${ftp.pathInbound}" user="${ftp.user}" password="${ftp.password}" responseTimeout="10000" doc:name="KBB_FTP" > <file:filename-wildcard

Mule json-to-object-transformer and Dataweaver Transformer exception

帅比萌擦擦* 提交于 2019-12-11 06:25:16
问题 I'm have an issue with a Mule Dataweave Transformer getting INFO 2017-08-10 15:05:52,787 [amqpReceiver.02] org.mule.api.processor.LoggerMessageProcessor: Authorisation Changed Event received. authorisation id: 1 INFO 2017-08-10 15:05:57,844 [amqpReceiver.02] org.mule.api.processor.LoggerMessageProcessor: type before class com.mulesoft.weave.reader.ByteArraySeekableStream INFO 2017-08-10 15:06:02,058 [amqpReceiver.02] org.mule.api.processor.LoggerMessageProcessor: type after: class com

Mule originalFilename is null

若如初见. 提交于 2019-12-11 02:29:14
问题 I am creating a process using Mule 3.4.1 which after processing a file it writes out the file with a specific filename. The input filename is: MMDDYYYY_sys_newhires.csv The processed filename is: MMDDYYYY_sys_newhires_NNN.csv The code that i am using is below: #[filename = message.inboundProperties.originalFilename; filename= com.cfa.apps.icims.mule.CounterSingleton.getInstance().getCount() + filename.substring(0,filename.length() -1 -4) + ".csv"; filename] The problem exists in the first

Migrating Mule 3.6 to Mule 3.7 NullPointerException calling method with null payload

[亡魂溺海] 提交于 2019-12-08 04:43:25
问题 I'm migrating my mule project from version 3.6 to 3.7. In version 3.6 I was able to use invoker calling a method passing payload as an argument. Now in version 3.7 if I do that I get NullPointerException , when payload is null , in class InvokerMessageProcessor , line 272, when the following test is executed: if (!(type.isAssignableFrom(arg.getClass()))) Because when payload is null arg is null . Is this a bug? 回答1: In fact, there was a change in the way Mule treats emptiness and null values

Mule - split a big JSON list into multiple smaller JSON lists

六月ゝ 毕业季﹏ 提交于 2019-12-04 19:05:53
I have a list of json objects containing about 200 objects. I want to split that list into smaller lists where each list contains max 20 objects each. I would like to POST each sublist to HTTP based endpoint. <flow name="send-to-next-step" doc:name="send-to-vm-flow"> <vm:inbound-endpoint exchange-pattern="one-way" path="send-to-next-step-vm" doc:name="VM" /> <!-- received the JSON List payload with 200 objects--> <!-- TODO do processing here to split the list into sub-lists and call sub-flow for each sub-list <flow-ref name="send-to-aggregator-sf" doc:name="Flow Reference" /> </flow> One