mule-component

Reconnect using Mule 3.5 db connector

亡梦爱人 提交于 2019-12-24 00:37:45
问题 I'm in the process of upgrading my flows to Mule 3.5.1 (from 3.4.1). I am trying to replace the deprecated jdbc-ee:connector with the new db connector. For the database, we are using Microsoft sql server. There isn't a predefined configuration for MS SQL Server, so I'm using the db:generic-config configuration. Does anyone know how to configure reconnection strategies with the new DB config? I'm finding the documentation is very sparse. Using the old jdbc-ee:connector, you can simply specify

Expose Http Response time in Mule ESB

我与影子孤独终老i 提交于 2019-12-23 02:22:10
问题 Is there any way to get the response time of an endpoint in MULE? Example is the Http Connector in mule, I need to get the response time of the invoked endpoint. 回答1: I was able to solve my problem by using Mule Server Notification. There is an interface MessageProcessorNotificationListener which can listen to PRE/POST invoke of a message processor. I have achieved to get the response time of an message processor using the following code. long startTime; if (m.getAction() ==

Expose Http Response time in Mule ESB

岁酱吖の 提交于 2019-12-23 02:22:02
问题 Is there any way to get the response time of an endpoint in MULE? Example is the Http Connector in mule, I need to get the response time of the invoked endpoint. 回答1: I was able to solve my problem by using Mule Server Notification. There is an interface MessageProcessorNotificationListener which can listen to PRE/POST invoke of a message processor. I have achieved to get the response time of an message processor using the following code. long startTime; if (m.getAction() ==

how to make until successful as synchronous to retry mechanism for FTP Outbound in mule 3.4.2

谁说我不能喝 提交于 2019-12-20 06:39:09
问题 I used retry mechanism for outbound FTP by using Untill successful. It is working fine but it is working as asynchronously in mule 3.4.2.I have seen synchronous option is avaliable in 3.5. is it possible to make untill successful scope working as synchronous in 3.4.2 version? if possible could u please provide me the solution? or else any other solution to use retry mechanism for outbound FTP? <until-successful objectStore-ref="objectStore" maxRetries="3" secondsBetweenRetries="1" doc:name=

How to pass parameters and load the wsdl using Web Service Consumer in Mule

[亡魂溺海] 提交于 2019-12-14 03:23:40
问题 Hi I am working with Mule Studio and i just want to know how can i pass the parameters and call the particular Operation from SOAP using the Web Service Consumer component. Payload i am setting as #[{'Orlando','United States'}] for the operation GetWeather The sample SOAP service i am using is LINK 回答1: Here you have a video demonstration on how to do it. Here the manual Page, and here an example. If you don't want to use DataMapper, I would recommend to use a CXF client or to write a

Issue writing file to sftp - carriage return removed

馋奶兔 提交于 2019-12-13 20:28:20
问题 I have a simple requirement where i have to write a csv to linux sftp . In the current implementation Which I have done CR-'carriage return' is being removed when writting the csv to sftp using mulesoft sftp connector . I have set encoding=US-ASCII on the sftp connector , in the dataweave , even in the property file as mule.encoding=US-ASCII. Nothing seems like working in cloud hub , but surprisingly the same works fine in my local . I understand after reading few blogs/ white papers that

How to restrict the ERROR log to be not printed in the logs when we raised exception in the Groovy script mule 3.7.3

南笙酒味 提交于 2019-12-13 07:00:02
问题 How to restrict the ERROR log to be not printed in the logs when we raised exception in the Groovy script mule. The below is the flow and response. <http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="7475" doc:name="HTTP Listener Configuration"/> <flow name="ExceptionTestFlow"> <http:listener config-ref="HTTP_Listener_Configuration" path="/test" doc:name="HTTP"/> <logger level="INFO" doc:name="Logger"/> <scripting:component doc:name="Groovy"> <scripting:script engine

Deleting records from Salesforce via Mulesoft ESB

℡╲_俬逩灬. 提交于 2019-12-13 05:22:38
问题 I am trying to delete list of records from Salesforce via Mulesoft ESB. I have already create an example project on github and the flow xml can be found here. The xml snippet for deleting records is below: <sfdc:delete config-ref="Salesforce__Basic_authentication" doc:name="Salesforce"> <sfdc:ids ref="#[payload]" /> </sfdc:delete> where, payload data type is List of string. While deleting the records I am getting below exception: ERROR 2015-11-05 23:39:39,755 [[tutorial].HTTP_Listener

Mule ESB How to implement a counter variable to count how much times a flow is called

流过昼夜 提交于 2019-12-13 03:56:41
问题 I am wordering about how to implement a counter which is will increase 1 step when flow is called. For example: I have a flow named: http://localhost:8080/doSomething and a variable counter. The counter variable will increase by 1 when I hit enter in doSomething service Many thanks 回答1: You need a persistent storage solution. Variables in Mule do not live across invocations. Mule has a concept of Object Stores: https://docs.mulesoft.com/mule-user-guide/v/3.7/mule-object-stores If you are a

Using mulerequester when there are more than one jms or wmq connector

给你一囗甜甜゛ 提交于 2019-12-13 02:14:06
问题 This is continuation from How to use Mule Expression in JMS:selector but a different question. I am using mulerequester to read off the queue as shown below. <mulerequester:request config-ref="Mule_Requester" resource="wmq://REPLY.QUEUE?selector=JMSCorrelationID%3D'#[sessionVars.myCorrelationId]'" doc:name="Mule Requester" timeout="120000"/> It works if I have one wmqConnector but I have 2 wmq connectors in my mule project (wmqconnector and wmqconnector1), pointing to different servers.